Android的持久性替代品的SQLite [英] Android persistence alternative to SQLite

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

问题描述

有没有其他替代的Andr​​oid的SQLite的手机中的持久化数据?我在寻找类似的iOS的coredata或简单的东西就像一个键值存储。如果我们需要的应用程序嵌入,一些比较小的规模也很大。

Is there any other alternative to SQLite in Android for persisting data in the phone? I am looking something like iOS coredata or something simpler like a key-value store. If we need to embed it with the apps, something that is relatively small in size is also great.

感谢您的帮助。

推荐答案

如果你只需要一个简单的存储为一对夫妇键/值对,<一个href="http://developer.android.com/reference/android/content/Shared$p$pferences.html">Shared$p$pferences是要走的路。如果你正在寻找更强大的东西,是比较核心数据,你应该给 greenDAO 一试。像核心数据,greenDAO你的对象和数据存储(核心数据iOS上通常需要SQLite的,太)。

If you need just a simple store for a couple key/value pairs, SharedPreferences is the way to go. If you are looking for something more powerful, that compares to Core Data, you should give greenDAO a try. Like Core Data, greenDAO a layer between your objects and the data store (Core Data on iOS usually takes SQLite, too).

这篇关于Android的持久性替代品的SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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