If you do not care about battery SyncAdapter
, use the SyncAdapter
for periodic bi-directional synchronization (up and downstream) and only change the local db to interact with the user action. Therefore, you only need two server-side scripts: one for downstream synchronization, and one for upstream synchronization.
Of course you need
1). 3, i.e. Insert_state, update_state and delete_state for local db to indicate dirty data.
2). uuid for local and remote db
RELATED GoogleIO SYNCHRONIZATION: http://www.youtube.com/watch?v=xHXn3Kg2IQE
source share