To save to preferences: PreferenceManager.getDefaultSharedPreferences(context).edit().putString(“MYLABEL”, “myStringToSave”).apply(); To get a stored preference: PreferenceManager.getDefaultSharedPreferences(context).getString(“MYLABEL”, “defaultStringIfNothingFound”); Where context is your Context. If you are getting multiple values, it may be more efficient to reuse the same instance. SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); String myStrValue = prefs.getString(“MYSTRLABEL”, “defaultStringIfNothingFound”); Boolean myBoolValue = prefs.getBoolean(“MYBOOLLABEL”, false); int myIntValue = prefs.getInt(“MYINTLABEL”, 1); And if … Read more