settings

Settings.Secure.HTTP_PROXY deprecated in ICS but no information on replacement

纵然是瞬间 提交于 2019-12-03 10:54:22
The Android developer docs say the following about Settings.Secure.HTTP_PROXY : Host name and port for global http proxy. Uses ':' seperator for between host and port TODO - deprecate in favor of global_http_proxy_host, etc But there is not any information about global_http_proxy_host . Now I always get null when trying to read Settings.Secure.HTTP_PROXY . Settings.Secure.HTTP_PROXY was working properly in all releases before ICS. You can use Java Reflection to set the global proxy tested on ICS. UPDATED CODE Activity activity = this; private void setProxtAndPortOnICS(String porxyServer2, int

Why am I unable to select a custom Type for a setting from the same project/assembly as the settings file?

拟墨画扇 提交于 2019-12-03 10:28:49
I am trying to set the type of an application setting property to a custom enum type I have defined in my assembly (call this Project A) In the settings browser I click browse and am presented with the "Select a Type" dialog box. And the Types defined in Project A are not seem to be available to me. Yet types are available from other projects that A has referenced. It seems almost beyond comprehension to me that one would not be able to use Types defined in the base project, so I assume I am doing something wrong. I have tried building, cleaning, rebuilding, restarting without any luck, so

Disable click and drag cut and paste in IntelliJ Idea IDE

蹲街弑〆低调 提交于 2019-12-03 10:27:29
问题 In my IntelliJ Idea 13.1.2 IDE I keep running into situations where I'm selecting on a click and drag via my laptop touch pad. I keep accidentally clicking and dragging text and cutting lines. I've searched the options and settings panels for the words click and drag but I don't see a way to turn this feature off. IntelliJ's help talks about how to use click and drag cutting but doesn't say how to disable it. Does anyone know how to disable cut and paste through click and drag in the IntelliJ

how to show up the google voice recognition settings in my app?

情到浓时终转凉″ 提交于 2019-12-03 10:14:54
问题 I am working on an android application in which i have implemented voice recognition and TTS. So i was thinking to launch settings screen for both google voice recognition and TTS to allow user to change settings from within the application. I have implemented TTS settings successfully by using following code: intent = new Intent(); intent.setAction("com.android.settings.TTS_SETTINGS"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); this.startActivity(intent); Now I want to show system's

ConfigObj/ConfigParser vs. using YAML for Python settings file

ⅰ亾dé卋堺 提交于 2019-12-03 09:45:40
Which is better for creating a settings file for Python programs, the built-in module (ConfigParser) or the independent project (ConfigObj), or using the YAML data serialization format? I have heard that ConfigObj is easier to use than ConfigParser, even though it is not a built-in library. I have also read that PyYAML is easy to use, though YAML takes a bit of time to use. Ease of implementation aside, which is the best option for creating a settings/configuration file? Using ConfigObj is at least very straightforward and ini files in general are much simpler (and more widely used) than YAML.

Is there a library or framework for setting preferences from within an iPhone application?

有些话、适合烂在心里 提交于 2019-12-03 08:50:09
Using the Settings.app on the iPhone isn't that hard. In fact Xcode does the most of the work for you. Just add the Settings.bundle to your project and there you have it for nearly no cost. At the moment I'm developing an application for the iPhone which requires the user to fill out several "forms", mostly key-value pairs, some sliders and several modal views with "dropdown" menus. So similar the task is similar to what the Settings.app does. Doing the forms by myself is a heavy task in my opinion, so I'm wonding if there's a framework for this kind of tasks. Unfortunately it looks like Apple

How can I watch the user.config file and reload the settings when it changes?

别等时光非礼了梦想. 提交于 2019-12-03 08:45:28
I have a situation where I am running multiple instances of my WPF application. I want the instances to share the same user.config file. Currently, whichever instance writes to the user.config file last wins. I'd prefer for all the instances to watch the user.config file and reload the settings whenever another instance changes it. The user.config file is currently located here: C:\Documents and Settings\ username \Local Settings\Application Data\ company name \ ExeName .exe_StrongName_ hash \1.0.0.0 For example, C:\Documents and Settings\usename\Local Settings\Application Data\Company\5kAdCon

How to vary connection string for different work locations

血红的双手。 提交于 2019-12-03 08:23:55
I am working on a C# 4.0, WPF 4.0, SQL 2008 project and I do work at home and in the office. I just setup SubVersion using Visual SVN per the recommendations found in other questions. The problem I am having is the connection string for the database is different for each location. At home I have the database on my dev system, in the office the database is on our server. Neither is exposed to the internet so I have to use both. Is there an elegant way to automatically select the correct one? Update I have been having ongoing issues with this and am trying to balance learning version control

Android Create Sip Account Programmatically

浪子不回头ぞ 提交于 2019-12-03 07:28:30
问题 In my application I want to have one Activity that enables user to add his SIP account parameters in fields. I don't want them to go Settings->Call->Internet Call Settings->Add Accounts->Add I have created account with activity with the following code: SipManager mSipManager = null; if(mSipManager == null) { mSipManager = SipManager.newInstance(this); } android.provider.Settings.System.putInt(context.getContentResolver(), android.provider.Settings.System.s , 0) SipProfile mSipProfile = null;

Bizarre error importing settings in django

我是研究僧i 提交于 2019-12-03 06:52:55
I have many projects working in ubuntu with python2.7 and virtualenv/virtualenvwrapper, in my work some developers works with macosx and windows, generally I create the project as usual: django-admin.py start project x And we use svn for cvs, but in some point, without nothing rational for me, when I try something like: python manage.py runserver doesn't work, but is just for me and is in my laptop, that doesn't happens in productions servers or another developers. any ideas? I got this error: Error: Can't find the file 'settings.py' in the directory containing 'manage.py'. It appears you've