共享preferences或源码 [英] SharedPreferences or SQlite
本文介绍了共享preferences或源码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发一个Android AppWidget其中显示从配置活动输入简短的文字。我有点糊涂了,当它来存储数据,我应该使用共享preferences或SQLite数据库?
I'm developing an Android AppWidget which displays a short text inputted from the configuration activity. I'm a bit confused when it's comes to storing the data, should I use sharedpreferences or SQlite Database?
感谢
推荐答案
这完全取决于你的数据,这些数据要存储。
It totally depend on your data, which you want to store.
共享preferences
- 小数据
- 非结构化
- 一样的登录信息,用户preffs等
sqlite的
- 大数据
- 结构
- 主办单位
这篇关于共享preferences或源码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文