I need to store localisated data from the web, which comes in a JSON
string. So far I have a DataAdapter
which expects data in a JSONObject
and collectes the data for visualisation. But now I have no caching at all.
I want to store the data from the last call including a Etag
for observing changes. So I want to show at first the cached data and look on the web if there are some changes and show them as far they are aviable. I see there three options:
- Plain storage of the whole JSON in a file
- Storage of the data in a SQLite database
- Using a CouchDB for Android
I'm not sure which way is most efficency... I want also to store/cache images. By the way I also want that the data are encrypted so far the storage system must not write any data directly on the flash memory, when seconds later comes another bound of data. And also I want to save the battery.
Which is the most energy efficency way to store data?
Which is the fastes way to store data?