Top "Sharedpreferences" questions

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

Is it possible to add an array or object to SharedPreferences on Android

I have an ArrayList of objects that have a name and an icon pointer and I want to save it …

android android-preferences sharedpreferences
How can I view the shared preferences file using Android Studio?

I'm using shared preferences to store certain values for my app. I would like to see the file where the …

android android-studio sharedpreferences
Get Android shared preferences value in activity/normal class

I have made a shared preference activity that store the user settings, now i want to get values in a …

android sharedpreferences
store and retrieve a class object in shared preference

In Android can we store an object of a class in shared preference and retrieve the object later? If it …

android object sharedpreferences
Difference between getDefaultSharedPreferences and getSharedPreferences

What is the difference between getDefaultSharedPreferences and getSharedPreferences in Android? Can anyone please explain?

android android-preferences sharedpreferences
How to detect if changes were made in the preferences?

I have a class that extends PreferenceActivity and shows the preference screen of my app. Is it possible to check …

android sharedpreferences android-preferences preferenceactivity
Android - How do i get sharedpreferences from another activity?

In my app there is a button (activity1). When user clicks it i want no sound in the game. I …

android sharedpreferences
Android ArrayList of custom objects - Save to SharedPreferences - Serializable?

I have an ArrayList of an object. The object contains the types 'Bitmap' and 'String' and then just getters and …

android arraylist sharedpreferences serializable
How to save HashMap to Shared Preferences?

How can I save a HashMap to Shared Preferences in Android?

android sharedpreferences
Android - Storing/retrieving strings with shared preferences

As the title says, I want to save and retrieve certain strings. But my code won't pass through the first …

android sharedpreferences