Top "Sharedpreferences" questions

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

SharedPreferences and Thread Safety

Looking at the SharedPreferences docs it says: "Note: currently this class does not support use across multiple processes. This will …

android thread-safety sharedpreferences
PreferenceManager getDefaultSharedPreferences deprecated in Android Q

PreferenceManager getDefaultSharedPreferences is deprecated in Android Q, how do I replace it?

android sharedpreferences android-10.0
Problems using SharedPreferences on a Service (getPreferences doesn't exist on a service)

I have some shared preferences (latitude, longitude) that I want to access from a service, that is not subclassed from …

android service sharedpreferences
Flutter: Unhandled exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)

My Flutter application uses the Flutter SharedPreferences plugin and send values to the iOS side with platform.invokeMethod. If I …

ios sharedpreferences flutter
How can I store an integer array in SharedPreferences?

I want to save/recall an integer array using SharedPreferences, is this possible?

android sharedpreferences
Delete SharedPreferences File

I am allowing the user to create multiple SharedPreferences files, but I also would like the option for them to …

android sharedpreferences
Android - SharedPreferences with serializable object

I know that SharedPreferences has putString(), putFloat(), putLong(), putInt() and putBoolean(). But I need to store an object that is …

android serialization sharedpreferences
Shared Preferences "limit"

I know similar question to this one has been asked a numerous times, and surfing through SO I partially found …

android sharedpreferences
Android- deprecated method warning regarding PreferenceActivity

When I attempt to follow Android's Developer guides and tutorials for creating a Settings Activity using Preferences, I receive warnings …

android sharedpreferences deprecated android-preferences preferenceactivity