Why does SharedPreferences.Editor
have a method putStringSet()
but not a method putStringList()
? This doesn't make any sense to me. My understanding (which could be wrong) is that SharedPreferences
objects are stored internally using xml
, and xml
supports arrays.
I understand that a SharedPreference
object is intended to be a simple object for small amounts of data, so you wouldn't want to have too many put
methods, but I would have thought if you were going to have one of putStringSet()
or putStringList()
, putStringList()
would be both more generally useful (a set can be saved as a list, but not vice-versa) and easier to implement. Can anyone explain this?