在Android上保存数据:文件存储vs SQLite数据库vs共享首选项 [英] Saving data on Android : File Storage vs SQLite Database vs Shared Preferences
问题描述
这个标题使我想知道在特定应用程序上将大数据保存为大数据时最适合的功能.我知道我最近在Stackoverflow上看到了有关使用这些功能保存数据的问题,但是正如我所说的,我想知道最适合的问题.您对此有什么建议吗?
This title makes me wonder on what is most suited feature in saving medium to large data on a specific application. I know there is a recent questions that i have seen on Stackoverflow regarding on saving data with these feature but I want to know, as what i have said, what suited most. Do you have any suggestion regarding to this?
推荐答案
共享的首选项
将私有原始数据存储在键值对中.
Store private primitive data in key-value pairs.
内部存储
将私有数据存储在设备内存中.
Store private data on the device memory.
外部存储
将公共数据存储在共享的外部存储中.
Store public data on the shared external storage.
SQLite数据库
将结构化数据存储在私有数据库中.
Store structured data in a private database.
网络连接
使用您自己的网络服务器将数据存储在Web上.
Store data on the web with your own network server.
根据官方网站
这篇关于在Android上保存数据:文件存储vs SQLite数据库vs共享首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!