Re:How Google Inbox shares 70% of its code across Android, i...
by Zigurd on Thursday February 05, 2015 @04:50PM
(#9006374)
> mainly because on Android the SQLite wrapper is so clunky
Go straight for a ContentProvider, even if you are not sharing access to the data in SQLite. That makes it easier to build an observer pattern in Android. You can then build a SyncAdapter on the "back side" of this ContentProvider. Et voila, a synch'ed app.
Go straight for a ContentProvider, even if you are not sharing access to the data in SQLite. That makes it easier to build an observer pattern in Android. You can then build a SyncAdapter on the "back side" of this ContentProvider. Et voila, a synch'ed app.