sharedpreferences
Android widget buttons stop working
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[详细]
2023-03-20 07:10 分类:问答When to use multiple preferences files?
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?[详细]
2023-03-20 02:44 分类:问答Value of a ListPreference never updates
I have a ListPreference, but when I click on an item, the value doesn\'t update. The getValue() returns always the same thing.[详细]
2023-03-19 14:08 分类:问答Store a List or Set in SharedPreferences
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[详细]
2023-03-18 05:11 分类:问答Display the text back to TextPref
Need to display back the text input provided in Text Preference PreferenceCategory generalPrefCat = new PreferenceCategory(this);[详细]
2023-03-17 10:40 分类:问答Where do I put my preference xml files in Android?
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:[详细]
2023-03-16 13:45 分类:问答Can't get item from preferences in Android
I\'ve got a preferences.xml stored in my res/xml folder: <?xml version=\"1.0\" encoding=\"utf-8\"?>[详细]
2023-03-16 04:26 分类:问答SharedPreferences will not save/load in PreferenceActivity
EDIT: The problem described below was due to a very peculiar device issue not caused by any coding-related problem.[详细]
2023-03-15 23:57 分类:问答OnSharedPreferenceChangeListener and editor.clear()
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[详细]
2023-03-15 18:53 分类:问答Live Wallpaper preferences problem
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[详细]
2023-03-15 06:38 分类:问答