Questions tagged [preferences]

The java.util.prefs package provides a way for applications to store and retrieve user and system preference and configuration data.

1531 questions
0
votes
1 answer

Android Preferences Array

I'm writing a simple android app which needs to store 2 childrens details, i.e. name, age, toy. I was planning to do this using sharedpreferences. Here's my xml: prefs.xml
bazza2000
  • 131
  • 1
  • 12
0
votes
2 answers

PreferencesScreen crashes on click

I have placed this into my PreferencesActivity PreferencesActivity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); Preference preferences =…
dythe
  • 840
  • 5
  • 21
  • 45
0
votes
1 answer

How to set language preferences for Android app?

I am developing an Android app in which the application can be used by any language but I want to set preferences for the language of the text showing in the app as labels or the text in the buttons. So what I want to know how to do it is to include…
Shakash3obd
  • 13
  • 2
  • 9
0
votes
2 answers

Refreshing webview after preference save

I have made a [very] simple app for android which connects to a URL saved in the preferences. I have been able to get the app to open a new activity / layout to enter the URL and save it, then I use finish(); to go back to the main screen…
0
votes
1 answer

Eclipse RCP - How to grey-out dependent preferences?

How to grey out dependent preferences in Eclipse RCP? Can preferences be somehow defined as dependent from another preferency, so that they are greyed-out, if the preference which it depends from - is disabled?
Skip
  • 6,240
  • 11
  • 67
  • 117
0
votes
1 answer

Eclipse RCP - how to retrieve preferences stored by RadioGroupFieldEditor programmatically from PreferenceStore?

I have a preferences page, where some radio buttons are controlled by a RadioGroupFieldEditor. setPreferenceStore(Activator.getDefault().getPreferenceStore()); .... addField(new RadioGroupFieldEditor("CHOICE", "An example of a multiple-choice…
Skip
  • 6,240
  • 11
  • 67
  • 117
0
votes
1 answer

Retrieve encoded Bitmap from sharedpreferences

My situation is that: I have a button that change background of my parent layout with a image of SD (this work fine). Then I like save these image in a SharedPreference to allow the user start my app with their background image, and not my default…
Genaut
  • 1,810
  • 2
  • 29
  • 60
0
votes
1 answer

Saving large amount of android settings

I have an app that has a large chunk of settings consisting of 7 string arrays, 3 strings and a date.Is it recommended to store it into a sqlite db or can I use the preference or is there any other alternative?
jaisonDavis
  • 1,407
  • 2
  • 22
  • 36
0
votes
1 answer

Add or remove dynamically CheckBoxPreferences (Android)

I have a list of cities, and i want a user can choose one of these cities to add it in preferences. To do it, he goes on the CityActivity (which represents one city), open an OptionMenu and choose "Add to favorite". All the cities have a name, an ID…
QLag
  • 823
  • 1
  • 13
  • 33
0
votes
1 answer

Android calling preferences from another class

I just managed to delete my last question by accident so here it is again. I have the below class which I chucked together to test the preferences class. The problem I am facing is that when I pass or call from the preferences class nothing happens.…
James
  • 474
  • 4
  • 9
  • 22
0
votes
2 answers

Can I add a button for settings to every options menu in my application?

I want to add a button for settings to the options menu of my app. Do I have to do this for each Activity or can I set it globally once?
Quentamia
  • 3,244
  • 3
  • 33
  • 42
0
votes
2 answers

Opera Extension Preferences through config.xml

I've defined 2 preferences in the extension's config.xml file: When I use the following to retrieve these value in the…
Sam
  • 1,358
  • 4
  • 16
  • 30
0
votes
1 answer

Android app: Help screen on startup unless user sets preference not to. How?

There are posts that touch on this question, but no one that I can find that really directly approaches it or solves it. I have a main Activity that I want to call/create a help screen (it is really a second activity) when the user first gets into…
user1418094
0
votes
1 answer

app is crashing after quickly changes preferences with commit(

I need to check the user input in the preferences if they want to save a new value. I believe the code is correct... because if I'm change the values slowly there's no problem at all. If I change too quick the app is crashing. i'm using commit() for…
user1404924
  • 95
  • 1
  • 2
  • 11
0
votes
1 answer

Android Preference OnPreferenceClickListener( ) OnPreferenceClick( ) argument, is it irrelevant?

use this code, in the Preferences activity, to know when the reset preference has been clicked: Preference reset = findPreference(res.getString(R.string.reset_text)); reset.setOnPreferenceClickListener(new…
ilomambo
  • 8,290
  • 12
  • 57
  • 106
1 2 3
99
100