Android app with automatic sync

本小妞迷上赌 提交于 2019-12-24 22:46:13

问题


recently, I've started the developing of a new app, and this app is in need of constant update. I know I can do it with alarms, but I think that a better way is to add my app to android automatic sync service (the one that is added gmail app and whatsapp for example).

I've looked for that topic, but couldn't find any answer about how to interact with that service. Can anybody provide me an example of how to accomplish it?

Thank you so much,

Vyrphan


回答1:


Check out the SampleSyncAdapter code under the SDK samples. It will be in a directory akin to;

C:/Program Files/Android/android-sdk/samples/android-10/SampleSyncAdapter/




回答2:


Maybe this can help you http://developer.android.com/training/cloudsync/index.html



来源:https://stackoverflow.com/questions/11518394/android-app-with-automatic-sync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!