Android offers a variety of options for storing application data. Shared Preferences is the name of one of these methods. Data in the form of a key-value pair can be saved and retrieved using Shared Preferences.
You must use the method getSharedPreferences(), which returns a SharedPreference instance pointing to the file containing the preferences' values, in order to use shared preferences.
SharedPreferences sharedpreferences = getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);