共享preferences.getStringSet()没有发现? [英] SharedPreferences.getStringSet() not found?

查看:177
本文介绍了共享preferences.getStringSet()没有发现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有件事情,我不共享preference理解。

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

本文它说,getStringSet ()方法是从API 1.支持的,但我发现好像没有方法。我用API 8我的应用程序。这里发生了什么?难道不支持了?

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:有使用共享preference.Editor没有区别。有没有putStringSet()在编辑器类。

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

截图:看..没有getStringSet()

screenshot : look.. no getStringSet()

推荐答案

公共抽象集合getStringSet(字符串键,设置defValues​​)的自:API级别11

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

在他们使用我经常弄错11 1,太多的字体。

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

这篇关于共享preferences.getStringSet()没有发现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆