dimanche 8 février 2015

Sync a local android database with mysql when the device is online (Bidirectional sync)

I am trying to develop a to-do android app that should allow me to add items to a list and save it in the local sql-lite database (in offline mode). Later when i connect to the internet I want the app to sync the data (perform SELECT / INSERT / UPDATE operation for example) with a remote MySql database and probably show some additional information (fetched form mysql) about those items on the list. I read about some similar problems and suggestions here, but those were kind of old and focused more on methods or tactics that can be used. This SELECT/UPDATE has to be very spontaneous/real-timed and without any user interference. Is there any standard solution to this sort of problem? Does android SyncAdapter comes into play by any chance? Tips/suggestions will be highly appreciated.


Aucun commentaire:

Enregistrer un commentaire