mardi 11 août 2015

Android Persistent Storage

I have read through the Android Storage Options and I have a question that I haven't been able to find the answer to:

Should I use SQLite to store my data or should I use a JSON object that is written to a file?

The reason I ask this is because I don't have a lot of data to store - for a SQLite database there will probably never be more than a few 100 rows, which makes me think SQL is overkill.

Also, exporting my data to a JSON file will allow me to easily import/export from different device platforms (I already do this on iOS).

Or, maybe there's a better option? If there was an NSCoding type library for Android I would probably use that.

Any opinions are helpful.

Thanks!

Aucun commentaire:

Enregistrer un commentaire