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
13
votes
2 answers

Android - Push Notification are ON?

How to check programmatically if user turn off push notification in app settings? Can I open app settings intent directly from the app to prompt user to turn it on? Thanks
goodm
  • 7,275
  • 6
  • 31
  • 55
12
votes
1 answer

Asp.Net Core 3.1 Appsettings not respecting JsonConverter

In asp.net core 3.1, using the new System.Text.Json, I am trying to use a custom JsonConverter on an appsettings section. Manually serializing/deserializing respects the converter just fine, but reading from appSettings via Options pattern does…
12
votes
4 answers

Get Connection String in Azure Function v3

I am very confused. I want to get a connection string in an Azure v3 function (.Net Core 3.1). My local settings looks like { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", …
12
votes
4 answers

SQL Server Management Studio -- where is Tools/Import and Export settings menu?

In Visual Studio, there is an Import and Export settings wizard which you can use to customize Visual Studio and save settings to a .settings file. Do we have something like it in SQL Server Management Studio? I'm constantly switching between…
tempid
  • 7,838
  • 28
  • 71
  • 101
12
votes
2 answers

Spring Boot @RestController enable/disable methods using properties

I can enable/disable the whole @RestController using @ConditionalOnProperty, for example: @RestController @ConditionalOnProperty(name = "com.example.api.controller.decision.DecisionController.enabled", havingValue =…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
12
votes
2 answers

Xamarin Forms Sharedpreferences cross

I'd like to know what is the best solution to manipulate application settings in a cross-platform way. In iOS we can change the settings outside the app in the settings screen, but we don't have that in windows phone and android. So, my idea is to…
12
votes
3 answers

how to change .NET user settings location

By default settings are stored at: C:\Documents and Settings\\Local Settings\Application Data\ How can I change this path to application directory. I also don't want to have different files for different users. How make the settings…
mack369
  • 441
  • 2
  • 6
  • 10
11
votes
3 answers

How do I access the Properties namespace from within a console app?

I am trying to store/retrieve a value that is stored in the Application Settings. From within my console application I can not seem to access the Properties.Setting namespace. My web surfing has revealed that a little more work might be needed to do…
Nick
  • 19,198
  • 51
  • 185
  • 312
11
votes
2 answers

Where to store Application Data in Windows 7 and Vista

My application needs to, like most, store data. The application was previously used on XP only where it would store the data in Program Files. Now that our customers are moving to Windows 7 I had to upgrade it so that it stored the data in a new…
Chris
  • 26,744
  • 48
  • 193
  • 345
11
votes
2 answers

Dependency Injection and AppSettings

Let's say I am defining a browser implementation class for my application: class InternetExplorerBrowser : IBrowser { private readonly string executablePath = @"C:\Program Files\...\...\ie.exe"; ...code that uses executablePath } This…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
11
votes
6 answers

How to use different .settings files for different environments in .NET?

.NET allows you to use .settings files to manage application settings. I would like to store Production, Development and Test settings separately in a way that I can do something like this: EnvironmentSettings environmentSettings; // get the…
Carl
  • 151
  • 1
  • 8
11
votes
1 answer

QSettings on OS X 10.9 - unable to locate/clear it

I have a Qt (4.8.5) based application running on OS X 10.9. The app uses QSettings class specifying app name and company. Plist file is created by QSetttings under: ~/Library/Preferences/com.company_name.app_name.plist The app works pretty fine in…
Thomas
  • 303
  • 2
  • 7
11
votes
10 answers

Settings.Default. always returns default value instead of value in persistant storage (XML file)

I recently wrote a DLL in C# (.Net 2.0) which contains a class that requires an IP address. A co-worker of mine altered the class to retrieve the IP from a ".dll.config" (XML) file -- This apparently is automatically generated by the "Application…
Pretzel
  • 8,141
  • 16
  • 59
  • 84
10
votes
3 answers

How to adjust editor scrolling in Android Studio

I am using Android Studio 1.5.1 on Windows 7 Home Premium 64 bits. When I scroll in a text editor window (like editing my MainActivity.java) it jumps 10 lines ahead (or back). That's just too much scrolling for me. I've already messed with the…
10
votes
1 answer

Remember Window position, size and state [on Win + Arrow alignment] (with multiple monitors)

In our project we save the Window Size, Position and Minimized/Maximized Settings, so we can open the window at the exact same spot and size when we re-open it. All this is working quite well, using the Window-Behavior-class found at the bottom of…
Kevin Cruijssen
  • 9,153
  • 9
  • 61
  • 135