Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android persistence alternative to SQLite

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.

Thank you for your assistance.

like image 306
Joshua Partogi Avatar asked May 22 '11 04:05

Joshua Partogi


2 Answers

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).

like image 66
Markus Junginger Avatar answered Sep 18 '22 14:09

Markus Junginger


I don't know anything about iOS but take a look at SharedPreferences

like image 25
Haphazard Avatar answered Sep 19 '22 14:09

Haphazard