javaandroidsynchronization

Keep android view in sync with server data


I have a game that has an activity/view of open challenges. Challenges are opened by some user and can then be accepted by any other user. I expect that challenges are opened and accepted quite fast.

Then there is a problem with keeping the open challenges view in sync with the challenges on the server. I don't want to display challenges that are already accepted by another user. I know that it cannot be full real time, but what is the best thing to do in this situation?

At the moment challenges are loaded to the view from a REST server when the activity is created.


Solution

  • Will Android Push, C2DM solve your problem? Here you will find Google guys talking about C2DM