Data Storage. Android provides several options for you to save persistent application data.
The solution you choose depends on your specific needs, such as whether the data should be private to your application or accessible to other applications (and the user) and how much space your data requires. Your data storage options are the following: Shared Preferences Store private primitive data in key-value pairs. SharedPreferences = Android similar NSUserDefaults from iPhone.
How to use getSharedPreferences in android. Data Storage. Android - SharedPreferences strage. getSharedPreferences not working.