source: this post
//Retrieve the values
Set<String> set = myScores.getStringSet("key", null);
//Set the values
Set<String> set = new HashSet<String>();
set.addAll(listOfExistingScores);
scoreEditor.putStringSet("key", set);
scoreEditor.commit();
- is myScoresrefers to sharedpreference?
- what is listOfExistingScoresrefers to? is it ArrayList?
- is scoreEditorrefers to ArrayList? or ListView? or custom ListView?
 
     
    