开发者

SharedPreferences.getStringSet() not found?

开发者 https://www.devze.com 2023-03-02 12:57 出处:网络
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

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()

SharedPreferences.getStringSet() not found?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消