Top "Sharedpreferences" questions

SharedPreferences allows you to save and retrieve persistent key-value pairs of primitive data types in Android applications.

How to set multiple default values in a MultiSelectListPreference?

I have preference.xml like this <MultiSelectListPreference android:key="store_select" android:title="@string/setting_store_title" android:summary="@…

android sharedpreferences preferences
Get all selected entries from MultiSelectListPreference(SharedPreferences)

I want to use MultiSelectListPreference to create an array of items and to search for them in an xml. I …

android xml sharedpreferences multiselectlistpreference
getString from a few SharedPreferences file and create listView

First - sorry for my english;) I'am writing profile manager for Android and i want getString from a few SharedPreferences …

android listview sharedpreferences profiles getstring
Android - Is it bad practice to have multiple Shared Preferences?

I have an app making use of SharedPreferences. One just stores app version to check against update for a changelog, …

java android sharedpreferences
SharedPreferences are sometimes deleted

My app uses SharedPreferences (with the help of a PreferenceActivity) to store all settings. But sometimes all settings are deleted …

android service sharedpreferences
EditTextPreference.setText(value) not updating as expected

I'm trying to prevent the user from entering an empty string into an EditTextPreference (in the example, catName). I use …

android sharedpreferences preferenceactivity edittextpreference
What is the file name used by default shared preferences?

Android Backup Service requires a filename to backup shared preferences: public static final String PREFS = "PrefFile"; SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(…

android sharedpreferences android-preferences android-backup-service
Shared Preferences reset when the app is force closed or crashes

I have noticed that my app's SharedPreferences are completely reset if the app is force closed or is killed by …

android crash preferences sharedpreferences
What is the difference between entries and entry values in android listPreferences xml?

Here is my code: How do they differ and which values get displayed on the dialog? <ListPreference android:entryValues="@…

android sharedpreferences preferences listpreference
SharedPreferences in BroadcastReceiver seems to not update?

I have a Activity which updates a string in the SharedPreferences. SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences.Editor editor = settings.…

android broadcastreceiver sharedpreferences alarmmanager