2

There's something that I don't understand with SharedPreference.

In this document it says that the getStringSet() method is supported from API 1. But I found no method like that. I use API 8 for my apps. What's happening here? Is it not supported anymore?

ps : There's no difference with the SharedPreference.Editor. There's no putStringSet() in the editor class.

screenshot : look.. no getStringSet()

enter image description here

Fugogugo
  • 4,460
  • 10
  • 36
  • 50
  • Show some code that fails to compile? – Femi Apr 30 '11 at 17:13
  • Yep, @abp got it right: its 11, not 1. – Femi Apr 30 '11 at 17:29
  • Check out [http://stackoverflow.com/questions/7361627/how-can-write-code-to-make-sharedpreferences-for-array-in-android](http://stackoverflow.com/questions/7361627/how-can-write-code-to-make-sharedpreferences-for-array-in-android) as a way of storing arrays (Collections etc) in SharedPreferences. –  Jan 17 '13 at 01:34

1 Answers1

7

public abstract Set getStringSet (String key, Set defValues) Since: API Level 11

In the typeface they use I often mistake the 11 for a 1, too.

Alec B. Plumb
  • 2,490
  • 25
  • 25