Top "Android-sharedpreferences" questions

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

java.lang.SecurityException: MODE_WORLD_READABLE no longer supported

The exception only occurs in Android 7.0 Nougat (emulator) devices. java.lang.SecurityException: MODE_WORLD_READABLE no longer supported My code: …

android android-sharedpreferences android-7.0-nougat android-securityexception
How to examine SharedPreferences from adb shell?

Now that we can Examining sqlite3 Databases from a Remote Shell, is it possible to examine SharedPreferences from adb shell? …

android adb android-sharedpreferences
Does the presenter having knowledge of the Activity / Context a bad idea in the MVP pattern?

I've been playing around with the MVP pattern for a few weeks now and I've come to the point where …

android mvp android-sharedpreferences
What's the difference between getDefaultSharedPreferences() and getPreferences()?

I'm currently taking the "Developing Android Apps" Udacity course. In the "Lesson 3: New Activities and Intents > Use SharedPreferences" segment, …

android android-preferences android-sharedpreferences
setDisplayHomeAsUpEnabled() not working in PreferenceActivity

I have a SettingsActivity which extends PreferenceActivity to show settings in my app. There is a back arrow, but it …

android android-preferences preferenceactivity android-sharedpreferences
LiveData with shared preferences

I have a settings screen where I am setting some values. When I set those values it gets saved in …

android android-sharedpreferences android-livedata