Good day, I am building an Android Application. I want to store a set of strings in the Preferences to order to track who used the application based on their log in informat
Create an editor Object first :
SharedPreferences.Editor editor = prefs.edit();
And use the editor object to store and fetch your string set like this :
editor.putStringSet("List", set); editor.apply(); Set fetch = editor.getStringSet("List", null);