settings

Losing VB.NET “My.Settings” with each new ClickOnce deployment release

放肆的年华 提交于 2019-12-19 03:43:05
问题 I am using the built-in My.Settings functionality in VB.NET to save application settings. This is very convenient but I notice that each time I release a new version, the settings are lost. Why and how can I prevent it? 回答1: You need to manually update your application settings, I use this easy method: Create a boolean setting called MustUpgrade, User scope, default to True. Then write a method to check if My.Settings requires updating, and call it's Update() method if so. Flag your settings

Set or View “Advanced Wi-fi” Settings programatically

梦想与她 提交于 2019-12-19 02:54:28
问题 I need a way to open the "Advanced wifi" settings programatically to let the user change some of the settings, or, preferably, to change these advanced wireless settings programatically. I can only access the wi-fi settings so far via startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)) but not the advanced settings. Is there a way to open the "Advanced wifi" settings? 回答1: There are two more settings that might work for you: From the API documentation: Settings.ACTION_WIRELESS_SETTINGS

GlassFish v3 - portability of settings

拈花ヽ惹草 提交于 2019-12-18 21:51:26
问题 Is there any way to simply copy the GlassFish v3.0.1 server settings (ie connection pools, resources, realms... ) to another GlassFish, so it is not needed to set them manually? This way it would be a lot easier to set up the same development environment. Environment: NetBeans 6.9 + GlassFish 3.0.1 Thanks in advance, Daniel 回答1: You should just be able to drop your glassfish\domains\<name_of_domain>\config\domain.xml file into your target domain and restart glassfish. 来源: https:/

How do I set my development web browser in VS2010 RC?

。_饼干妹妹 提交于 2019-12-18 18:34:52
问题 I don't like to use IE for my system default web browser. but I do want to set IE as my browser in VS2010 because it works a little nicer for debugging and I like to develop to the lowest common denominator. (jab, lol)... anyhow, can I default to debugging against IE? I know in VS2008 you just had to "Browse With..." on an .aspx page. But that option doesn't exist in VS2010 RC . What gives? 回答1: This is for VS2008, but should apply just as well to VS2010. You have several options. Go to the

Android short screen brightness code!

扶醉桌前 提交于 2019-12-18 17:25:34
问题 Anyone who knows why this code ain't lowering the backlight of my application? Context context = this; Settings.System.putInt(context.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 255); 回答1: Applications are no longer allowed to modify the global brightness. Don't use the tricks people have tried to come up with at various points, these use private APIs and will break in various ways across different devices (and are considered security holes that have been closed on more recent

Monitor Android system settings values

£可爱£侵袭症+ 提交于 2019-12-18 16:59:38
问题 I want to watch a system setting and get notified when its value changes. The Cursor class has a setNotificationUri method which sounded nice, but it doesn't work and coding it also feels strange... Thats what I did: // Create a content resolver and add a listener ContentResolver resolver = getContentResolver(); resolver.addStatusChangeListener(ContentResolver.SYNC_OBSERVER_TYPE_SETTINGS | ContentResolver.SYNC_OBSERVER_TYPE_PENDING | ContentResolver.SYNC_OBSERVER_TYPE_ACTIVE, new MyObserver()

Monitor Android system settings values

谁说胖子不能爱 提交于 2019-12-18 16:58:59
问题 I want to watch a system setting and get notified when its value changes. The Cursor class has a setNotificationUri method which sounded nice, but it doesn't work and coding it also feels strange... Thats what I did: // Create a content resolver and add a listener ContentResolver resolver = getContentResolver(); resolver.addStatusChangeListener(ContentResolver.SYNC_OBSERVER_TYPE_SETTINGS | ContentResolver.SYNC_OBSERVER_TYPE_PENDING | ContentResolver.SYNC_OBSERVER_TYPE_ACTIVE, new MyObserver()

How to open settings from my iPad application (Objective-C) [duplicate]

喜欢而已 提交于 2019-12-18 16:58:21
问题 This question already has answers here : Access Settings app in iOS (5 answers) How to open preferences/settings with iOS 5.1? (4 answers) Closed 5 years ago . I've tried using: [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ "prefs: root = General & path = Network"]]; And options trading all you see here: examples But I can not make it work. 回答1: Apple no longer allows developers to open the Settings application from within their apps (iOS 5.1 and later). EDIT According

How to open settings from my iPad application (Objective-C) [duplicate]

白昼怎懂夜的黑 提交于 2019-12-18 16:58:21
问题 This question already has answers here : Access Settings app in iOS (5 answers) How to open preferences/settings with iOS 5.1? (4 answers) Closed 5 years ago . I've tried using: [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ "prefs: root = General & path = Network"]]; And options trading all you see here: examples But I can not make it work. 回答1: Apple no longer allows developers to open the Settings application from within their apps (iOS 5.1 and later). EDIT According

What is the Intent to call “Choose screen lock” screen?

为君一笑 提交于 2019-12-18 15:49:12
问题 I cant find any refrence to call the Intent screen "Choose screen lock". Cant find anything? Any idea? 回答1: EDIT: It turns out that this had been added in Version 2.2 of Android. Please ee pleczko's answer below. Before Android 2.2 there is no intent to do this. 回答2: You can call action DevicePolicyManager.SET_NEW_PASSWORD to send user to lock screen settings fragment (firstly he will have to type current password/pattern for secure lock types): Intent intent = new Intent(DevicePolicyManager