Top "Sharedpreferences" questions

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

How to use SharedPreferences in Android to store, fetch and edit values

I want to store a time value and need to retrieve and edit it. How can I use SharedPreferences to …

android sharedpreferences
Android Shared preferences for creating one time activity (example)

I have three activities A,B and C where A and B are forms and after filling and saving the …

android android-activity sharedpreferences
How to delete shared preferences data from App in Android

How do I delete SharedPreferences data for my application? I'm creating an application that uses a lot of web services …

android sharedpreferences
Save ArrayList to SharedPreferences

I have an ArrayList with custom objects. Each custom object contains a variety of strings and numbers. I need the …

android arraylist sharedpreferences
How do I get the SharedPreferences from a PreferenceActivity in Android?

I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml …

java android sharedpreferences preferenceactivity
How do you save/store objects in SharedPreferences on Android?

I need to get user objects in many places, which contain many fields. After login, I want to save/store …

android sharedpreferences
how to use getSharedPreferences in android

I have an application in which I have to implement a "Login" activity. I have these components: EditText username EditText …

android android-preferences sharedpreferences
Where are shared preferences stored?

Where in an Eclipse project might one encounter a shared preferences file?

android sharedpreferences
Android SharedPreferences in Fragment

I am trying to read SharedPreferences inside Fragment. My code is what I use to get preferences in any other …

android android-fragments sharedpreferences
What's the difference between commit() and apply() in SharedPreferences

I am using SharedPreferences in my android app. I am using both commit() and apply() method from shared preference. When …

android sharedpreferences