List of utility methods to do SharedPreferences Delete
void | deleteAllPreference(Context context) delete All Preference SharedPreferences pref = PreferenceManager .getDefaultSharedPreferences(context); Editor edit = pref.edit(); edit.clear(); edit.commit(); |
void | clearSharedPreferences(Context context) clear Shared Preferences SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(context); SharedPreferences.Editor editor = prefs.edit(); editor.clear(); editor.commit(); |