Shared Preferences in Android explained in detail

Shared Preferences

Anu S Pillai

The Admin at

You may also like...

2 Responses

  1. Freak says:

    how to delet data from string set

    This is my code
    SharedPreferences sharedPreferences = context.getSharedPreferences(“myPref”, Context.MODE_PRIVATE);
    Set myStrings = sharedPreferences.getStringSet(“myStrings”,new HashSet());
    SharedPreferences.Editor editor = sharedPreferences.edit();

  2. Freak says:

    it is removing from string set but not affecting to myPref file

Leave a Reply

Your email address will not be published.