jeudi 26 mars 2015

Android design- Data sync approach

I have following scenario:


Android application running on mobile device needs to have data syncing feature based on given set of interval specified by mobile application user.


I have designed a UI which will accept syncing frequency from user and persist in sqlite db. I was wondering what would be right approach for building syncing logic. Server exposes restfull webservice for getting delta changes in data. Syncing should happen even if application is in dormant( application is not active) Background syncing should be invoked on specified frequency.


Can i use make use service along alarm for implementing this? Is there a better approach for implementing this?


Aucun commentaire:

Enregistrer un commentaire