Android application Database Framework
Posted
by
Marek Sebera
on Programmers
See other posts from Programmers
or by Marek Sebera
Published on 2011-12-08T07:40:53Z
Indexed on
2012/12/14
17:18 UTC
Read the original article
Hit count: 286
When creating mobile (specially Android) application, I usually come to touch with similar pattern of working with data.
Usually I need to fetch some remote data (covered by authorization process) to local cache. And on next request:
- Check networking
- Check presence of cache file
- Check version of cache file (if networking)
- Get new version and save cache (if networking and file not in cache, or outdated)
Data store is no-SQL JSON Document-Based (and yes, I know about CouchDB Android version, but it doesn't fit my needs yet.)
Process of authorizing to data source and code for check version of local cache is adapted to application. But the other code (handling network, saving cache, handling exceptions,...) is always the same.
Is there any Data Store helper I can use, which provides functions I described above?
© Programmers or respective owner