I have an Android application with a widget, that has buttons. This code works. The buttons on the widget stop working when something happens, such as changing the language of the phone. I use shared
I usually use one preference XML file to store all app-wide data. Now I wonder if this is a wrong way to do. When should I use multiple preference files?
I have a ListPreference, but when I click on an item, the value doesn\'t update. The getValue() returns always the same thing.
My app has a list of String values (of some 5-20 characters each), that I have to store persistently. The SharedPreferences seem to me the most appropriate, as it\'s a short list. Usually it will be e
Need to display back the text input provided in Text Preference PreferenceCategory generalPrefCat = new PreferenceCategory(this);
I want to use a preferences.xml file for storing/retrieving application wide preferences. Where do I store the xml file so that I can use:
I\'ve got a preferences.xml stored in my res/xml folder: <?xml version=\"1.0\" encoding=\"utf-8\"?>
EDIT: The problem described below was due to a very peculiar device issue not caused by any coding-related problem.
Okay, I just asked a question earlier tonight regarding giving users a button to reset the preferences of a Live Wallpaper back to their defaults. I figured it out, but pressing the button doesn\'t ac
So I have this big stupid problem with the preferences in my live-wallpaper. First, PreferenceManager.getDefaultSharedPreferences, doesn\'t work. I\'m calling it in my Main class, a subclass of Wallp