The java.util.prefs package provides a way for applications to store and retrieve user and system preference and configuration data.
Questions tagged [preferences]
1531 questions
7
votes
2 answers
Get preferences in AppWidget Provider
I seem to be having trouble reading preferences from my AppWidgetProvider class. My code works in an Activity, but it does not in an AppWidgetProvider. Here is the code I am using to read back a boolean:
SharedPreferences settings =…

strange quark
- 5,205
- 7
- 41
- 53
7
votes
2 answers
How to edit/reset Alarm Manager?
I've set up a Preference Screen in which i have a list preference which allows user to select time interval to notify them.
They can choose whether to notify them after every 2,4,8,10 or 12 hours.
Here's my list preference:

Hammad Nasir
- 153
- 1
- 10
7
votes
1 answer
How to map IDictionary in Fluent NHibernate?
I am looking to persist user preferences into a collection of name value pairs, where the value may be an int, bool, or string.
There are a few ways to skin this cat, but the most convenient method I can think of is something like this:
public class…

Nick W
- 135
- 2
- 8
7
votes
3 answers
How to change default download folder while webdriver is running?
I am downloading several different data sets and would like each file (or set) to download to a specific folder. I have learned how to change the download directories at these page:
setting Chrome preferences w/ Selenium Webdriver in Python
Change…

seeiespi
- 3,628
- 2
- 35
- 37
7
votes
6 answers
Save Windows Form Size
I'm developing a piece in VB.NET. Inside my primary form, I'm creating a new form to use as a dialog. I was wondering if there was a way to, upon the close of the new dialog, save it's size settings for each user (probably in a file on their…

Joe Morgan
- 1,761
- 6
- 20
- 29
7
votes
9 answers
What linux distro is better suited for Python web development?
Which linux distro is better suited for Python web development?
Background:
I currently develop on Windows and it's fine, but I am looking to move my core Python development to Linux. I'm sure most any distro will work fine, but does anyone have any…

rmontgomery429
- 14,660
- 17
- 61
- 66
7
votes
1 answer
How do I do "sub-categories" in Preferences
I have a Preference page where I would like 3 options "indented" or sort of like subcategories under the "custom flashcards" preference. Right now they are all under each other and seem like they are for different settings. How do I make it seem…

compprogjava
- 169
- 2
- 8
7
votes
2 answers
Meaning of 'Ignore potential matches'
Under Window > Preferences > General > Search, there is the option Ignore potential matches
What does it do? Whether I activate it or not, I never see a difference.
Is it an option that only makes sense for Java development (which I never do, but I…

parvus
- 5,706
- 6
- 36
- 62
6
votes
1 answer
Correctly initializing and retrieving preferences in a Xtext-based Eclipse Plugin
I am writing an Eclipse plugin using Xtext 2. I have provided my own preferences by writing my own RootPreferencePage class:
package org.grammaticalframework.eclipse.ui.editor.preferences;
import…

John J. Camilleri
- 4,171
- 5
- 31
- 41
6
votes
3 answers
Java Preferences API using a custom file?
Is it possible to use Preferences API to store my application's settings in a custom file? From what I have read, in Windows preferences are stored in registry which is not a good idea imho and I want my app to save prefs to let's say…

BartoszCichecki
- 2,227
- 4
- 28
- 41
6
votes
2 answers
Android Preferences: Incorrect default values DESPITE "setDefaultValues"
I have a similar problem like this, so I proceeded according to the proposed solution and added this line of code to onCreate:
PreferenceManager.setDefaultValues(this, R.xml.settings, false);
Unfortunately the problem still occurs, if the user…

JonEasy
- 921
- 10
- 22
6
votes
1 answer
Inflating a layout in preference settings
I have a custom layout which has a textview and ratingbar , and then i set the layout as view to my preferences , the problem is that i tried to inflate the view in my preferences fragment and set the ratingbar onclick , i put a log to see if it is…

Taki
- 3,290
- 1
- 16
- 41
6
votes
1 answer
Set Intent-flags for PreferenceScreen in xml
My PreferencesActivity's view is populated through XML and in that XML I included a PreferencesScreen to navigate to the system's sync-preferences.
It works fine using the code below.
My problem/question is, that when I opened the Sync-Preferences,…

dst
- 1,770
- 13
- 26
6
votes
2 answers
Best Method to Save Data in a Firefox Add-on
For example let us say that we want to save a list of URLs and this list is updated dynamically. The following are the ways that I see this can be done.
1) Save in a text file
2) Save in a SQLite data base
3) Save in a preference (I know preferences…

Can't Tell
- 12,714
- 9
- 63
- 91
6
votes
1 answer
Adding a preferences window to a Mac App
Ok so i've made and app and i want to add a preferences window to my app which is accessible from the menu bar.
Can anyone provide me with a tutorial or guide on how to do this, thanks, Sami.

Sami
- 1,374
- 1
- 16
- 43