• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SharedPreferences

xDiVx

Newbie
Does the data I put in SharedPrefences remains after the app is destroyed?
and if not, what sort of data (except the external storage) can be used to save data even after the app is destroyed?
 
Yes, data you put in SharedPrefences remains after app destroying.

According to Google:

Using Shared Preferences

The SharedPreferences class provides a general framework that allows you to save and retrieve persistent key-value pairs of primitive data types. You can use SharedPreferences to save any primitive data: booleans, floats, ints, longs, and strings. This data will persist across user sessions (even if your application is killed).
 
Back
Top Bottom