在Android的开发持久存储 [英] Persistent Data Storage in Android Development

查看:110
本文介绍了在Android的开发持久存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Java和Android的发展,我想问问有什么可用的方法将数据存储到永久存储?例如像我想要存储的字符串的集合像数据库或文件。

I'm new to Java and Android development and I want to ask what are the available method to store a data to a persistent storage? Like for example I want to store a collection of strings like in database or files.

请指教。谢谢你。

推荐答案

正如你在问题本身,你可以使用文件或database.If说,更多的数据是存在的,那么你可以去文件和数据库(SQLITE),否则,如果小的数据,那么你也可以去共享preferences.Below一个链接,它的所有关于datastorage Android中所有的documentaion.Hope它会帮助你。 :)

As you said in your question itself you can use file or database.If more data is there then you can go for file and database(SQLITE) or else if small data then you can also go for SharedPreferences.Below is one link where its all about datastorage in android all from documentaion.Hope it will help you. :)

这里链接

这篇关于在Android的开发持久存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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