From the course: Building Android Apps with Azure

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

More on offline sync and conflict resolution

More on offline sync and conflict resolution

From the course: Building Android Apps with Azure

More on offline sync and conflict resolution

- I wanted to take a minute to briefly summarize what we have done for conflict resolution. We have created a handler called "ConflictResolvingSyncHandler" to handle conflict resolutions during the sync process. There are several strategies on how to deal with conflicts between local data and the server's copy of data. I have not implemented these strategies in this course, because it really depends on how you want to deal with the server/client conflicts. However, I have set things up so that it is easy to explore these different strategies. In our Azure Client singleton, the method "setSyncConflictListener" can be called from any activity. I have used the bookmark activity as the example to show how you would set the listener and unset the "SyncConflictListener". And, the unsync conflict method is where you would actually add your logic to deal with the discrepancies between our local copy of bookmarks and the server's copy of bookmarks. Furthermore, what we have done in this…

Contents