When creating mobile (specially Android) applications, I usually come to touch with similar patterns of working with data.

Usually, I need to fetch some remote data (covered by an authorization process) to a local cache. And on next request:

  • Check networking
  • Check presence of cache file
  • Check the version of the cache file (if networking)
  • Get the new version and save the cache file (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?

share|improve this question
Can you not use SQLite? Android ships with it, IIRC. – Michael Nov 1 '12 at 19:00
@Michael yep, sqlite ships with android, but raw sql is unsuitable for large projects. Can you understand what is the point in using Database Framework? – Marek Sebera Nov 1 '12 at 20:33
3  
I guess I'm not really sure that your use case is clear enough. So far you've mentioned that CouchDB for Android and Sqlite will not work for your needs. What are those needs? It does not seem at all clear what you are doing on a mobile device that could not work on either of these two systems. Once upon a time, I worked on an application that ran on Windows CE. It uploaded data to the server and had sketchy network access. Queuing up the data in sqlite worked perfectly. That's not to say it will work in your case--just why I'm not clear what is different in this case. – Michael Nov 1 '12 at 21:22
Voting to close as Not a Real Question since the OP hasn't explained why two apparently viable options (CouchDB and Sqllite) aren't meeting their needs. We need that information in order to help answer the question. – GlenH7 Jan 16 at 20:52
@GlenH7 Database Framework is from definition some kind of ORM (like Hibernate, JPA, ...) where objects are stored and retrieved without need to manual convert Cursor to Object instance, working with annotations to define keys, foreign keys, column types, validation rules, etc... Sqlite is suitable but it is DB not DB-Framework, CouchDB is no-SQL framework, but it doesn't fit my needs. – Marek Sebera Jan 16 at 21:02
show 2 more comments

closed as not a real question by GlenH7, gnat, Glenn Nelson, Walter, Carson63000 Jan 17 at 1:52

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.