settings

Write to Global Settings in Android 4.2

一个人想着一个人 提交于 2019-12-13 14:33:18
问题 Android 4.2 has introduced a new class, Settings.Global, which now holds some of the settings that used to be in Settings.Secure or Settings.System. Writing to System Settings and Secure Settings was (and is) possible because or the WRITE_SETTINGS and WRITE_SECURE_SETTINGS permissions (see Manifest.permissions). The thing is... is there any way to modify Global Settings? For example, Airplane mode could before be toggled from an app and now, since it's in Settings.Global, it does not seem

How to use the read/writeable local XML settings?

青春壹個敷衍的年華 提交于 2019-12-13 14:05:24
问题 I found something similar to what I need here: http://www.codeproject.com/KB/cs/PropertiesSettings.aspx But it does not quite do it for me. The user settings are stored in some far away location such as C:\documents and settings\[username]\local settings\application data\[your application] , but I do not have access to these folders and I cannot copy the settings file from one computer to another, or to delete the file altogether. Also, it would be super-convenient to have the settings xml

.Settings file in Win Form App, Best Practice

谁说胖子不能爱 提交于 2019-12-13 14:05:15
问题 I have a Win Form app that stores some per user settings in a UserSettings.Settings file. This has worked well so far, however it seems that the Settings file gets "reset" when ever I release an update. Which I do through ClickOnce . Is this the expected behavior? Can I control if fields in the Settings file get overwritten? Is there a better way I should store user settings? Thanks 回答1: When you release an update your updated app should call ApplicationSettingsBase.Upgrade Method to move

Settings bundle values returning nil

允我心安 提交于 2019-12-13 12:02:09
问题 I added a Settings bundle to my app and in Xcode it appears in the root of my project tree view. The Root.plist file looks like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>StringsTable</key> <string>Root</string> <key>PreferenceSpecifiers</key> <array> <dict> <key>Type</key> <string>PSGroupSpecifier</string> <key>Title</key> <string>Service</string> </dict>

Windows Logo clean uninstall

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 08:07:09
问题 Anybody knows a way to cleanly uninstall a program that stores its settings on the per-user basis and installs for all users? I mean only the way to completely following the all Logo (Vista, 7, 8 - Server and Desktop) requirements. I have found no way but installing a program on per-user basis, which in general can't be the solution. Maybe leave some .cmd files in each user's home folder for cleaning-up application data? The Logo requirements contains a lot of contradictions, and precisely

Tableau Linux server, does it not recognize the user ODBC settings

被刻印的时光 ゝ 提交于 2019-12-13 06:29:19
问题 Connecting data source via ODBC driver to the tableau server seem to not work at a user level. I have odbc.ini and obdcinst.ini files on the user home directory. $ODBCINI and $ODBCINSTINI Environment variables are set pointing to respective files.Tableau still fail to pick the data source. Workbook published from the desktop is rendered only on placing the odbc.ini and odbcinst.ini into /etc/ or tableau user directory ( /var/opt/tableau/tableau_server/ ). Although it fixes the issue, there

Expected End of Statement error in vbs file

这一生的挚爱 提交于 2019-12-13 05:47:19
问题 I'm automating the task of disabling the Proxy on Mozilla firefox (it currently defaults to 'Automatic proxy config url' and I manually set it to 'No Proxy'). After some research, I realised the settings can be changed by creating a user.js file (which overrides the firefox settings stored in pref.js) that contains this: user_pref("network.proxy.type", 0); Below is the vbs syntax i'm having issues with: Set objFSO=CreateObject("Scripting.FileSystemObject") outFile="%APPDATA%\Mozilla\Firefox

Inserts to Database During Debugging Does Not Commit To The Actual Database

◇◆丶佛笑我妖孽 提交于 2019-12-13 05:17:01
问题 Sorry about this but for the life of me I can't figure it out, I'm sure it must be a setting within visual basic that I am missing. So I have a program that lets me insert values into my database and a datagridview that selects those values thus showing me the results of my inserted records. When I debug my program it looks great. Everything inserts and shows up in the datagridview. The only problem is as soon as I close the program the records disappear. When I enter the program again they

How to redirect my Windows Phone C# app to a setting page?

寵の児 提交于 2019-12-13 05:15:32
问题 I need an Method or Class that redirects my app to a setting page like "Ringtones+Sound" or "Brightness". I was thinking of something like "ConnectionSettingTask" class and ".Show()" method that redirects to a "bluetooth" page, for example. Any ideas? 回答1: You can use LaunchUriAsync to open up built-in apps. Use following code to achieve your requirement: Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-bluetooth:")); The problems: There are only limited uri schemes available. Here

Opening a native settings menu page programmatically in NativeScript

空扰寡人 提交于 2019-12-13 03:54:58
问题 How can you programmatically open a page from the native Android settings menu using NativeScript? Classic java examples show it can be done this way: Intent intent = new Intent(Settings.ACTION_SETTINGS); startActivity(intent); but how to do the same in NativeScript? 回答1: This can be achieved using the module tns-core-modules/application , which will make startActivity available. An example using TypeScript is provided below: import * as appM from 'tns-core-modules/application'; const intent