settings

How to add preference of Custom Input method to Android Settings app?

瘦欲@ 提交于 2020-01-09 11:24:08
问题 Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app. I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings (first picture from begin) Thank you P.S. Sorry for my bad english.. 回答1: I've found it myself: in XML of input method you need to put

How to add preference of Custom Input method to Android Settings app?

依然范特西╮ 提交于 2020-01-09 11:23:11
问题 Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app. I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings (first picture from begin) Thank you P.S. Sorry for my bad english.. 回答1: I've found it myself: in XML of input method you need to put

iOS programatic Cellular Data Control

旧时模样 提交于 2020-01-06 19:25:44
问题 Is there a way to programmatically access the "Cellular Data" options that are sometimes shown in apps? Background I have an application that uploads data files over the internet. I have given users the option of disabling this upload functionality when not connected to WiFi. How What I'm currently doing is I wrote a settings.bundle that allows the user to select an option called User Cellular Data in my code I am using a Reachability.swift file from (https://github.com/ashleymills

Storing default value in Application settings (C#)

与世无争的帅哥 提交于 2020-01-06 16:38:11
问题 I am using Application settings to store and retrieve my GUI settings. For one of the setting Name - FileDirectory Type - String Scope - User Value - Problem?? i need to store Desktop folder path i.e Environment.GetFolderPath(Environment.SpecialFolder.Desktop) I can't set this in Settings Page. How can i set this default value? P.S I am using C# (.Net 2.0) 回答1: may be a check at startup : if(string.IsnullOrEmpty(Settings.Default.FileDirectory)) { Settings.Default.FileDirectory = Environment

Call wireless settings screen with back button

陌路散爱 提交于 2020-01-06 08:00:33
问题 If there is no wireless connection and no logged in google account when you open Play Market and choose new or existing account it opens specific wireless settings screen with back button at the bottom. How to open same screen from my app? Thanks 回答1: Intent intent = new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK); intent.putExtra("only_access_points", true); intent.putExtra("extra_prefs_show_button_bar", true); intent.putExtra("wifi_enable_next_on_connect", true); startActivityForResult

iOS 7 Newsstand default cover is not set

情到浓时终转凉″ 提交于 2020-01-06 01:30:11
问题 Since iOS7 the default cover that is set in the info.plist under Icon Files (iOS 5) are not shown after installation the app. Instead the default cover by Apple is shown. I can see that this property is for iOS 5 but I tried other as well. An example - Icon Files could not be changed from an Array to a Dictionary. Do you know how to set a default cover for Newsstand app in iOS 7? Best Regards! 回答1: OK i got the solution.Add Icon files (iOS 5) if you didnt add previously in your app-info.plist

how to exclude app.config from setup deployment project

隐身守侯 提交于 2020-01-05 05:25:47
问题 How to exclude app.config from setup deployment project? I must maintain encrypted sections in app.config and the only (semi) embeded way I know is by running code with RsaProtectedConfigurationProvider or DPAPI provider. Since I have to run that code the question arises: when to run it. Since there seem to be some problems using Rsa under windows 7 (some end user's will NOT have admin rights on it) I concentrated on DPAPI which is machine dependent. Therefore I can not encrypt app.config on

how to exclude app.config from setup deployment project

℡╲_俬逩灬. 提交于 2020-01-05 05:25:07
问题 How to exclude app.config from setup deployment project? I must maintain encrypted sections in app.config and the only (semi) embeded way I know is by running code with RsaProtectedConfigurationProvider or DPAPI provider. Since I have to run that code the question arises: when to run it. Since there seem to be some problems using Rsa under windows 7 (some end user's will NOT have admin rights on it) I concentrated on DPAPI which is machine dependent. Therefore I can not encrypt app.config on

android gradle error: Can't register given path of type 'SOURCE' because it's out of content root

六月ゝ 毕业季﹏ 提交于 2020-01-03 17:04:03
问题 I've just updated my Android Studio this morning to version 0.4.2 with gradle 1.9. Before updating Gradle was compiling well however, after updating it has started to show an error each time I've tried to compile or refresh Gradle configurations. The message is always the same: "Can't register given path of type 'SOURCE' because it's out of content root." Content root: 'C:/Users/XXX/Documents/AndroidWork/Project/modules' Given path: 'C:\Users\XXX\Documents\AndroidWork\Project\src\testLive

How can I change monitor settings to duplicate and extend via script

核能气质少年 提交于 2020-01-03 15:54:14
问题 As I am using a laptop with a tv as its second monitor I want to make a little script which will trigger screen settings from extended to clone and when it is set to clone it should set the screen settings to extended. I want to make it in c# as it is my primary language and I think it could solve my problem. So i have made a console application like this for now: class Program { static void Main(string[] args) { DisplayChanger.Start(); } private static Process DisplayChanger = new Process {