settings

Stuck on preserving config file in WIX major upgrade!

匆匆过客 提交于 2019-12-06 03:04:41
问题 ARGH! Wix is driving me crazy. So, of course I have seen the many posts both here on stackoverflow and elsewhere about WiX and major upgrades. I inherited this software project using WiX and am releasing a new version. I need this new version to leave ONLY the one configuration file if it's present, and replace everything else. This installer works EXCEPT no matter what I have done so far, the new XML file replaces the old on every install. Even attempting to use NeverOverwrite="yes" and even

Is it possible to set config settings on Firefox from a Addon

浪子不回头ぞ 提交于 2019-12-06 02:49:55
问题 I'm looking for a way to print from web without prompting the print dialog (I just made the question). I found This method for Firefox and it seems to work, but it obviously will affect all websites. So I'm thinking of developing a Firefox Addon that makes this configuration to affect only specific websites. I don't know nothing about building Firefox addons, but if it's possible to change settings this way I will learn how to do it. So my question is.. Is it possible to set config settings

How do I display content from feedburner in WebView in Full HTML?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 02:47:35
I am using a WebView to display this feedburner . When I view this link in Google Chrome and in the device's browser it shows the title, snippet, links, and most importantly a podcast file and other hyperlinks. However, when I view this link in my WebView it only shows it in Plain Text HTML with no hyperlinks. All i see is a title and the story snippet, followed by HTML source code. Is there a particular that must be enabled to resolve this? These are my WebView settings: newsfeed = (WebView) findViewById(R.id.webViewnews); newsfeed.getSettings().setJavaScriptEnabled(true); newsfeed

C# Dynamically Get Variable Names and Values in a Class

旧巷老猫 提交于 2019-12-06 02:06:48
I am currently making a program (C# .Net 4) that has multiple options, which are saved to a file. These options are their own variables in-code, and I was wondering if there was a way to get the variables and values of these options dynamically in code. In my case, I have these options in a "Settings" class, and I access them from my main form class using Settings.varSetting. I get and set these variables in multiple places in code; is it possible to consolidate the list of variables so that I can access and set them (for example, creating a Settings form which pulls the available options and

.Net application settings path

一世执手 提交于 2019-12-06 01:42:16
问题 By default in windows application setting are saved in this directory: %USERPROFILE%\Local Settings\Application Data\<Company Name>\<appdomainname>_<eid>_<hash>\<version>\user.config Is it possible to change path for saving user.config file? For example save it in local folder? 回答1: You can, if you make your own ApplicationSettingsBase derived class to manage the application settings. For details, see Application Settings Architecture. That being said, I strongly recommend not doing this.

How To give notifications on android on specific time in Android Oreo?

北慕城南 提交于 2019-12-06 01:28:34
问题 I am looking for a way to create a preference in Settings to send a notification at a specific time of the day (set by user in settings) in an Android app. I have looked at different threads like this, however this is not working in Android Oreo. Can someone help me with this or point me to a tutorial? 回答1: After looking at different posts and some research on AlarmManager implementation, this is what worked for me. The base for this is this post and Schedule repeating Alarms Android

What is the difference between “Settings…” and “Default Settings…” in Android Studio?

杀马特。学长 韩版系。学妹 提交于 2019-12-06 00:46:51
问题 I find I can set File Encodings and other parameters in both File | Settings... , and also File | Other Settings | Default Settings... . However, I'm not clear on what the difference between these two options is. Further, I can run File | Export Settings... to save settings to a settings.jar file, however I am unclear what is restored if I run the File | Import Settings... operation. What is the difference between the two settings options? What settings are being exported/imported when

When does an iphone application receive didChangeAuthorizationStatus: delegate call?

孤街醉人 提交于 2019-12-05 23:15:11
问题 I have a question about CLLocationManagerDelegate . The documentation says if the user changes the settings for your location services (in the iPhone's Settings.app) then your app is supposed to receive an didChangeAuthorizationStatus: message to the delegate. My question is, when would this happen? If the user changed the setting, it means they are in the settings app, and your app is either backgrounded or not running at all, so in the former case, when would your app's CLLocationManager

How can I save a copy of Properties.Settings.Default to a variable?

自闭症网瘾萝莉.ら 提交于 2019-12-05 22:44:38
I have a "Restore Defaults" button in an options dialog and want to restore the values that are affected in this form only and not the whole Properties.Settings.Default So I tried: var backup = Properties.Settings.Default; Properties.Settings.Default.Reload(); overwriteControls(); Properties.Settings.Default = backup; But this unfortunately doesn't work since backup seems to change at Reload() , too? Why and how would I do this correctly? The Settings class uses a singleton pattern, meaning their can only ever be one instance of the settings at any one time. So making a copy of that instance

How to store int[] array in application Settings

狂风中的少年 提交于 2019-12-05 18:15:49
问题 I'm creating a simple windows Forms application using C# express 2008. I'm an experienced C++ developer, but I am pretty much brand new to C# and .NET. I'm currently storing some of my simple application settings using the settings designer and code like this: // Store setting Properties.Settings.Default.TargetLocation = txtLocation.Text; ... // Restore setting txtLocation.Text = Properties.Settings.Default.TargetLocation; Now I'd like to store either an array of ints ( int[] ), or possibly a