Android Utililty Methods SharedPreferences Delete

List of utility methods to do SharedPreferences Delete

Description

The list of methods to do SharedPreferences Delete are organized into topic(s).

Method

voiddeleteAllPreference(Context context)
delete All Preference
SharedPreferences pref = PreferenceManager
        .getDefaultSharedPreferences(context);
Editor edit = pref.edit();
edit.clear();
edit.commit();
voidclearSharedPreferences(Context context)
clear Shared Preferences
SharedPreferences prefs = PreferenceManager
        .getDefaultSharedPreferences(context);
SharedPreferences.Editor editor = prefs.edit();
editor.clear();
editor.commit();