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
6
votes
4 answers
SharedPreferences Editor commit takes so much time
I try to make a configuration activity using PreferenceActivity...
I found some working examples like
"WiFi Advanced Configuration Editor"
and
"Wifi Config Editor Pro"
but the code I wrote waits for 10-15 seconds on the line editor.commit()...
it…

caw
- 76
- 1
- 4
6
votes
6 answers
How do I manage eclipse plugins, preferences and configuration for a team?
All the members of my team works with Eclipse. However, each one have different configuration, preferences and plugins. What is the best way to keep a baseline of plugins, preferences such as code styling and formatting, and other configuration in…

oshai
- 14,865
- 26
- 84
- 140
6
votes
3 answers
Can't Control Order of String Set in Shared Preferences
This is my first stackoverflow question. I have done lot of googling on this. On Hashsets, Treesets, LinkedHashSets, Collections, Stacks (Stack class is deprecated?)... I realize I could just use SQLite but I'm trying to avoid that for the time…

Nerdy Bunz
- 6,040
- 10
- 41
- 100
6
votes
2 answers
PHP Frameworks - Are they solely personal preference?
I'm new to the world of PHP frameworks and, after some initial investigation, came up with the following list of popular choices:
CakePHP
CodeIgniter
Symfony
Zend
I'm trying not to repeat the "Which is best?" question, which seems to elicit not…

Colin Brock
- 21,267
- 9
- 46
- 61
6
votes
1 answer
PreferenceFragment does not show up in Activity
I have followed the guide "settings" from android developers. But when I launch my SettingsActivity all I get is white screen. What am I doing wrong?
Here is my SettingActivity.java
public class SettingsActivity extends Activity {
@Override
…

Oleg Filimonov
- 1,323
- 4
- 13
- 36
6
votes
1 answer
How to get a preference value in preference fragment
I want to show the value of preferences in a custom preference screen. For this I need to get the values, in this case strings, within the preference fragment. In non fragments (activities) I get the values with e.g. final SharedPreferences prefs =…

sascha
- 265
- 2
- 4
- 13
6
votes
4 answers
Encapsulating Java Preferences API
I used to have a custom preferences class for my applications. For my next hobby project i wanted to switch to the Preferences API. But the put and get functions require a default value and i do not want to spread default values all over the source…

Hamza Yerlikaya
- 221
- 1
- 2
- 5
6
votes
1 answer
Changing android widget setup preferences after creation?
Say my app has a widget and I use a configuration screen to do initial app widget setup and set a few preferences.
I want the user to be able to change those settings by simply going into my app's settings screen and clicking an intent preference to…

CodeFusionMobile
- 14,812
- 25
- 102
- 140
6
votes
4 answers
close PreferenceFragment
I am searching for hours again and did not find an answer I understood/was looking for.
I habe an preference screen, that opens when the user clicks settings in the menu. This works.
But how do I best enable the user to close this screen, when he is…

Ricardo di Stefano
- 135
- 2
- 4
6
votes
2 answers
How can I display a Dialog from a PreferenceFragment?
I'm trying to bring up a DialogFragment when I tap a Preference in a PreferenceFragment. Unfortunately, when I call getFragmentManager() in DialogFragment.show() I receive the following error:
Cannot resolve method…

IAmKale
- 3,146
- 1
- 25
- 46
6
votes
2 answers
Is Reading / Writing Preferences An Expensive Operation?
I have a preference that controls whether or not my app plays a sound whenever the user clicks a button (which is done quite often, think of a calculator). Each time the user clicks the button the following method is called:
private void…

Jan Tacci
- 3,131
- 16
- 63
- 83
6
votes
3 answers
Xcode: changing double clicking file behavior
One of my projects suddenly had its double-clicking behavior changed and I don't know how to change it back.
The behavior I want:
Double clicking a source code file opens up a new window.
The behavior I have:
Double clicking a source code file opens…

Corey Floyd
- 25,929
- 31
- 126
- 154
6
votes
2 answers
Possible to remove my app from settings app?
Previous versions of my app have used the Settings.bundle method to have some user preferences managed in the (external) settings app. I've done away with that now, but I'd like to be able to de-register my application so that old users who upgrade…
Frank C
6
votes
2 answers
Escaping % in ICS Preferences - Do I really have to write version specific string handling?
I have an app that crashes on ICS. Worked fine up to then (though I'm not sure if I ever really got a honeycomb platform to test on, all of our test phones are either gingerbread or lower, and now I have a couple ICS phones to play with).
The…

gbryant
- 751
- 5
- 19
6
votes
1 answer
get SharedPreferences from a service
I am trying to access shared preferences from a service. I have used the the following to save the value of text to a string...
SharedPreferences sharedPreferences = getPreferences(MODE_PRIVATE);
SharedPreferences.Editor editor =…

user1190019
- 565
- 1
- 5
- 17