Top "Sharedpreferences" questions

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

Store a List or Set in SharedPreferences

My app has a list of String values (of some 5-20 characters each), that I have to store persistently. The …

android list sharedpreferences
Saving byte array using SharedPreferences

So I have a byte [] array which I have created in my android app. I want to use SharedPreferences from …

java android bytearray sharedpreferences
Android how to set default value of EditTextPreference from SharedPreference?

This time in the same project I'm facing a slightly challenging issue where in settings.xml file in the res/…

java android sharedpreferences edittextpreference
Android SharedPreferences String Set - some items are removed after app restart

I save a string set in the shared preferences, if I read it out it's ok. I start other activities, …

android sharedpreferences
Android - Shared Preferences are lost sometimes

Some of the users of my application complain that sometimes (in a random way) the settings of my application are …

android sharedpreferences
Unsafe or unchecked operations warning

In an app I am using SharedPrefernces to save/load (serialize/deserialize) some objects. This is the deserialization code: private …

java android serialization sharedpreferences unchecked-cast
How to Iterate through all Bundle objects

I am trying to create helper method that would iterate through all Bundle objects, in a generic manner. By "generic" …

android bundle sharedpreferences
Flutter One time Intro Screen?

I have an intro screen for my app, but it shows every time I open the app, I need to …

flutter dart sharedpreferences
SharedPreferences not being removed on user uninstalling application

Has anyone encountered this issue on a Nexus 6P device? I am only getting this issue on a Nexus 6P (…

android sharedpreferences nexus-6p
Saving data on Android : File Storage vs SQLite Database vs Shared Preferences

This title makes me wonder on what is most suited feature in saving medium to large data on a specific …

android file sqlite sharedpreferences saving-data