Skip to content Skip to sidebar Skip to footer

Android Sharedpreferences Null Keys, Values And Sets - Corner Cases

Been extensively testing the SharedPreferences framework. While most works as one would expect I run across some cases where I wonder what's the reasoning behind them. I give some

Solution 1:

  1. It's in the code

  2. It's me not understanding generics:

    You can easily put a String into a HashSet<Integer> by using the raw type HashSet

  3. Posted an issue here: http://code.google.com/p/android/issues/detail?id=63463 (after starting a discussion in google groups with the usual noop results). Actually as of 2014.01.07 the issue is marked Future Release :)

Test project.

Post a Comment for "Android Sharedpreferences Null Keys, Values And Sets - Corner Cases"