Top "Sharedpreferences" questions

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

Is it ok to save a JSON array in SharedPreferences?

I have a JSON Array that I need to save. I was thinking about serializing it, but would it be …

java android json serialization sharedpreferences
How to save and retrieve Date in SharedPreferences

I need to save a few dates in SharedPreferences in android and retrieve it. I am building reminder app using …

java android date calendar sharedpreferences
Can't put double SharedPreferences

Getting error, the method put double is undefined for this type of sharedPreferences editor.Eclipse is given one quick fix …

android sharedpreferences
Alternative to addPreferencesFromResource as its deprecated

I create Preference activity on my app to allow user to start/stop background splash screen music as follow : public …

android sharedpreferences splash-screen
Shared Preferences - max length of a single value

I am storing String into shared preferences, but I wasn't able to find out maximal length of string I can …

android sharedpreferences
Run a piece of code only once when an application is installed

I want to run a piece of code only once in my application and is when i run it for …

android sharedpreferences android-preferences
Android: How to get the time from a TimePicker when it is typed in

I've got a DialogPreference which implements a simple TimePicker.OnTimeChangedListener (see below). Setting the time by clicking the +/- buttons …

android dialog android-preferences sharedpreferences timepicker
What will happen to the SharedPreferences on update an Android App?

I've stored user settings in the SharedPreferences in my App. What will happen with the SharedPreferences when I update the …

android sharedpreferences updates
encrypt data in SharedPreferences

Im currently developing a framework for oAuth 1 and 2 access to webservices and my question is, how do i store sensitive …

android encryption oauth sharedpreferences
Should accessing SharedPreferences be done off the UI Thread?

With the release of Gingerbread, I have been experimenting with some of the new API's, one of them being StrictMode. …

android sharedpreferences android-strictmode