Top "Sharedpreferences" questions

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

Put and get String array from shared preferences

I need to save on shared preferences some array of Strings and after that to get them. I tried this : …

android arrays string sharedpreferences
How to remove some key/value pair from SharedPreferences?

How to remove some key/value pair from SharedPreferences ? I have put and I to remove that from prefs.

android sharedpreferences
SharedPreferences Clear/Save

Iam trying to make a checker and I want to save a value into SharedPreferences. But i'am not sure if …

android android-activity sharedpreferences
Storing Array List Object in SharedPreferences

This method add new object into ArrayList //get text from textview time = date.getText().toString(); entry_d = entry.getText().toString(); …

android sharedpreferences
Android - How to use SharedPreferences in non-Activity class?

How do you use SharedPreferences in a non-Activity class? I tried making a generic Preferences utility class and importing android.…

android sharedpreferences
Can I get data from shared preferences inside a service?

I'm developing an android application. I'm using android 2.2 In my application I am capturing GPS data and sending it to …

android sharedpreferences android-service android-2.2-froyo
onSharedPreferenceChanged not fired if change occurs in separate activity?

I've implemented onSharedPreferenceChanged in my main activity. If I change the preferences in the main activity, my event fires. If …

android sharedpreferences
Accessing SharedPreferences through static methods

I have some information stored as SharedPreferences. I need to access that information from outsite an Activity (in from a …

android android-activity static-methods sharedpreferences
Android - How Do I Set A Preference In Code

I have an Android application in which I have my preferences in an XML file, which works fine. I now …

android sharedpreferences android-preferences
Android SharedPreference security

I wonder about shared preferences security. Is it possible to get access to sharedpreferences, even if they were created in …

android security sharedpreferences