Android的持久性替代品的SQLite持久性、替代品、Android、SQLite

由网友(似星河入梦)分享简介:有没有其他替代的Andr​​oid的SQLite的手机中的持久化数据?我在寻找类似的iOS的coredata或简单的东西就像一个键值存储。如果我们需要的应用程序嵌入,一些比较小的规模也很大。Is there any other alternative to SQLite in Android for persisti...

有没有其他替代的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.

感谢您的帮助。

推荐答案

如果你只需要一个简单的存储为一对夫妇键/值对,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).

阅读全文

相关推荐

最新文章