EDIT: The problem described below was due to a very peculiar device issue not caused by any coding-related problem.
I have a preferenceActi
Try clearing the editor before you set your values. I had the same problem and it worked for me. Example:
Editor e = PreferenceManager.getDefaultSharedPreferences(getParent()).edit(); e.clear(); e.putStringSet(key, value);