You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
I think it's better, even if you don't provide an alternate impl, to support it. Of course, converting from one String to Set and back on pre11 would bring even more value from AA.
You need an escaping mechanism (e.g. '') and then any char would do. Make sure that for example | is your separator, | resolves to | and \ resolves to .
Or go for a long string that regular users would definitely use in their own strings.
Activity
pyricau commentedon Jul 5, 2012
That's something we considered. The problem is that, as you can see [here](http://developer.android.com/reference/android/content/SharedPreferences.html#getStringSet(java.lang.String, java.util.Set<java.lang.String>), those methods appeared in API Level 11. So that means we should provide an alternate implementation for pre Android 11 runtimes.
ericbottard commentedon Jul 5, 2012
I think it's better, even if you don't provide an alternate impl, to support it. Of course, converting from one String to Set and back on pre11 would bring even more value from AA.
pyricau commentedon Jul 5, 2012
How'd you convert Set => String ? We need a separator, but I'm not sure there's a good separator.
ericbottard commentedon Jul 5, 2012
You need an escaping mechanism (e.g. '') and then any char would do. Make sure that for example | is your separator, | resolves to | and \ resolves to .
Or go for a long string that regular users would definitely use in their own strings.
naixx commentedon Jul 9, 2012
One could use json to serialize StringSet to String
androidannotations#264 - using Apache ObjectSerializer.
WonderCsabo commentedon Aug 22, 2014
Already implemented. :)