Questions tagged [application-settings]

application-settings are global code or data used for configuration

Application settings are used to define key/value pairs for a broad range of data, such as:

  • default values
  • access control
  • file paths
  • protocol handlers
  • localization mappings

References

785 questions
33
votes
6 answers

Opening app's notification settings in the settings app

In the case that a user may accidentally declines to receive notifications and wants to turn notifications later, how can I use an NSURL to open the IOS Settings App to my app's notification page where they can select Allow Notifications?
Matt
  • 1,087
  • 1
  • 12
  • 28
30
votes
7 answers

Reading default application settings in C#

I have a number of application settings (in user scope) for my custom grid control. Most of them are color settings. I have a form where the user can customize these colors and I want to add a button for reverting to default color settings. How can…
Ozgur Ozcitak
  • 10,409
  • 8
  • 46
  • 56
29
votes
4 answers

Max value of Xmx and Xms in Eclipse?

My settings for these values in eclipse.ini are: -Xms768M -Xmx1024M When setting them higher, Eclipse doesn't start anymore. Is there a way to increase these values without Eclipse crashing?
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
27
votes
17 answers

Why aren't .NET "application settings" stored in the registry?

Some time back in the nineties, Microsoft introduced the Windows Registry. Applications could store settings in different hives. There were hives for application-wide and user-specific scopes, and these were placed in appropriate locations, so that…
Thomas
  • 174,939
  • 50
  • 355
  • 478
27
votes
3 answers

Automatically "upgrade" user settings from previous version of app.config file?

Every time I compile my app and the version number changes (I have an auto-incrementing build number), I lose the user-configured app.config settings, since they're stored in the AppData folder for a specific version. Essentially, every release of…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
27
votes
7 answers

Why do people consistently recommend using appConfig instead of using Settings files? (.NET)

Very often I see the answer to the question like: "How should I store settings in my .NET app?" is to edit the app.config file by manually adding entries to the app.config (or web.config) like so: **
blak3r
  • 16,066
  • 16
  • 78
  • 98
26
votes
4 answers

ConfigurationManager.AppSettings Returns Null In Unit Test Project

I have a C# unit test project with application settings in the app.config file. I am testing a class that exists in a different project. That class depends on both, ConfigurationManager.AppSettings and ConfigurationManager.ConnectionStrings. The…
Jason Boyd
  • 6,839
  • 4
  • 29
  • 47
26
votes
6 answers

Save little information as setting in android (like first time that app is run)

I want to save a flag for recognizing that my app is run for the first time or not. For this simple job I don't want to create database.. Is there a simple option to do this? I want to save and read little pieces of information only.
Fcoder
  • 9,066
  • 17
  • 63
  • 100
25
votes
4 answers

How to open settings app programmatically?

I'm using swift with ios 8.3. I want to open settings app from my application. I know that using the code UIApplication.sharedApplication().openURL(NSURL(string:…
user4615157
24
votes
3 answers

Visual Studio, Application Settings... rearrange

Silly questions... purely aesthetic... given the picture above. How do you move the values up/down? For example, State belongs grouped with Height/Width/Top/Left (Window Position + state). Not the only project where I later add stuff and it slowly…
WernerCD
  • 2,137
  • 6
  • 31
  • 51
24
votes
3 answers

How to save byte[] in c# application settings

I am trying to save a byte array (byte[]) in c# application settings that is returned by Object List View. Can anyone give me a solution on how to save byte array in c# application settings? or some trick on how to convert byte[] to something like a…
Imran Shafqat
  • 508
  • 1
  • 9
  • 23
22
votes
6 answers

How to retrieve values from settings.bundle in Objective-c/Swift?

I have created a project that set and retrieve values from settings.bundle. I have also set some defaults values in settings.bundle file. Now the problem is when I retrieve values as NSUserDefaults *defaults = [NSUserDefaults…
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
22
votes
1 answer

How to create System Apps in android

I want to create an system application(while installing it will ask user permission to make it as system app) for UN-rooted application. As I am not familiar in android, please tell me how to create it. Thanks in advance.
21
votes
5 answers

Why are my application settings not getting persisted?

So I have some settings that are of the user scope, but for some reason, they are not being saved to the .exe.config file. I do the following: Properties.Settings.Default.Email = "new@value.com"; Properties.Settings.Default.Save(); Yet I look at…
ryeguy
  • 65,519
  • 58
  • 198
  • 260
19
votes
5 answers

How to store a list of objects in application settings

I have recently became familiar with C# application settings, and it seems cool. I was searching for a way to store a list of custom objects, but I couldn't find a way! Actually I saw a post to store int[], but it wasn't helpful for this problem. I…
Ehsan
  • 4,334
  • 7
  • 39
  • 59
1
2
3
52 53