Hello,
I'd like to implement simple sync functionality into my App. The goal is to read JSON data from file (On Dropbox) and update my SQLite data and vice versa. Users must be allowed to use App during sync process. I consider to use Dropbox Sync API and call syncing from (Intent)Service.
I see a few problems which could appear:
1.) App is minimized (paused) while syncing
2.) App is closed (killed) while syncing
3.) In some cases, sync scenario needs User input (for example: "Do you want to replace data in your device?" dialog)
Is there any "Best practice" or recommendation how to implement this functionality? It would be greatly appreciated if somebody could help with this problem.
Tom