开发者

Finding the right way to sync on Android 2.2

I have a private online ticket system that has a RESTful interface to get a list of tickets, view their details and mark them as accepted, completed and invalid.

Now I want this app to be accessible from a very simple Android application, providing basically the same functionality as my web app, just with a leaner interface.

The problem that I stumbled upon as a novice Android developer was that I have no idea which of the many ways to go for synchronization of the tickets. The target of my application are Android 2.2+ based systems so there is at least AbstractSyncAdapter which wasn't clear to me how to use from the documentation.

Another possibility that came to my mind was simply setting up a sc开发者_C百科heduled task that would do the synchronisation at specific intervals.

Another problem is that I don't really understand how to use ContentProviders and how to specify custom content types (such as my ticket). Do I need these at all if I merely want to use my data from my own application?

What would be ideal is a reference to a decent open source project that has implemented something like this already. Apart from that any help is greatly appreciated.

Thanks.


Have a look at Sample Sync Adaptor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜