从ArrayList中添加值共享preference [英] Adding values from a arrayList to shared Preference
本文介绍了从ArrayList中添加值共享preference的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能对我来说,存储和使用共享preference找回我的ArrayList值。任何人都可以建议我用一个例子。
Is it possible for me to store and retrieve my ArrayList values using shared preference. Can anyone suggest me with an example.
推荐答案
它看起来像最接近的共享preferences 能做的就是节省设置
字符串> 秒。如果不适合你或许应该看看替代持久化数据。
It looks like the closest the SharedPreferences can do is save a Set
of String
s. If that doesn't suit you should probably look at the alternatives for persisting data.
这篇关于从ArrayList中添加值共享preference的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文