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
42
votes
4 answers
How to remove PreferenceCategory programmatically?
I need to remove a PreferenceCategory programmatically. I could remove the individual preferences with the following code but I need to remove (disable) whole PreferenceCategory as well.
PreferenceScreen preferenceScreen =…

Harald Wilhelm
- 6,656
- 11
- 67
- 85
39
votes
2 answers
Preferences screen using ActionBar Sherlock
I'm doing an Android application using ActionBarSherlock.
My problem is for making preference screen. The onBuildHeader() method on the SherlockPreferenceActivity class is nerver called.
This is my code
preference_headers.xml

Vincent Milane Danzinpré
- 391
- 1
- 3
- 3
37
votes
5 answers
Tab to select autocomplete item in eclipse?
I can't find either the term autocomplete or intellisense in Preferences->General->Keys in Eclipse 3.6.2.
I don't want to press enter to select an autocomplete item when I write code. Can I configure Eclipse to accept an autocomplete item with the…

Carl R
- 8,104
- 5
- 48
- 80
37
votes
1 answer
android sharedpreferences set value
I have preferences page. It has field 'Show info screen' (as checkbox).
I have also info page which also should have checkbox 'Show me again'.
As I've understand, I can get value from preferences page via…

davs
- 9,226
- 8
- 41
- 54
35
votes
2 answers
VSCode: How to turn off auto select in File Explorer when changing window tabs?
In VSCode, if I have an editor window tab open and I click anywhere in that editor window, the selected file in the File Explorer changes to the file being edited. I would like to prevent that behavior. This is possible in Visual Studio, but I can't…

silverfox1948
- 857
- 10
- 15
34
votes
5 answers
Maintaining a common set of Eclipse preferences
Whenever I switch workspaces/Eclipse installs I need to copy/redo the preferences:
compiler settings;
font sizes/families;
code formatter;
java code templates;
editor templates;
code clean-ups;
I would like to maintain these settings in an unitary…

Robert Munteanu
- 67,031
- 36
- 206
- 278
34
votes
6 answers
Android: Retrieving shared preferences of other application
I have a settings application from which i have to retrieve other applications preferences, but i don't have the details of keys in them, how can i retrieve all the available keys and values in that preference?
Thanks,
Swathi

Swathi EP
- 3,864
- 6
- 26
- 25
34
votes
4 answers
Nested preferences.xml
Is it somehow possible to include one preferences.xml into another, like it can be done for layouts with the tag?
Let's say:

GrAnd
- 10,141
- 3
- 31
- 43
34
votes
6 answers
How do I find the "Preferences" menu in Eclipse in OS X?
In installing PyDev in eclipse, I need to go to window > preferences > pydev . . .
But when I click on Window, there is no preferences option, and I can't find it elsewhere.
Any ideas?

Eric Wilson
- 57,719
- 77
- 200
- 270
33
votes
8 answers
iPhone - How to detect if a key exists in NSUserDefaults standardUserDefaults
Using NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];,
I use calls like BOOL boolFromPrefs = [defaults boolForKey:@"theBoolKey"]; To get a saved BOOL value.
If the key is not found, NO is returned (default behaviour of…

Oliver
- 23,072
- 33
- 138
- 230
32
votes
6 answers
Creating feature in mac app to override the users security setting
I'm a newbie at mac osx development. I would like to know if there's any way to override the mac desktop security settings to allow an application - which is not registered in the Mac App Store, to be installed?
The setting should come from the app…

Kimpoy
- 1,974
- 3
- 21
- 38
31
votes
3 answers
Using list preference in Android
I have a text to speech application where the user can select a language and also select a male or female voice. The problem is that for each language there are different strings used to called the male and female voice but in my preference I only…

Amanni
- 1,924
- 6
- 31
- 51
30
votes
9 answers
How to add icons to Preference
I'm making an app that extends the PreferenceActivity and I want to add an icon to each Preference.
I read a similar question, and this is the answer with more reputation:
CommonsWare Say:
The Settings application uses a private custom…

Toni Alvarez
- 1,012
- 1
- 10
- 21
29
votes
3 answers
How does one declare the type of an Android preference?
I have a preferences.xml that looks like this:

David R.
- 493
- 1
- 6
- 10
29
votes
2 answers
Preference API storage
If I use the Preference API to store user or system preferences, where are they stored on Windows and Unix?

rupa
- 603
- 2
- 7
- 8