Android应用程序的自动同步 [英] Android app with automatic sync

查看:150
本文介绍了Android应用程序的自动同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我已经开始了一个新的应用程序的发展,这个程序是需要不断的更新。我知道我可以报警做到这一点,但我认为,更好的办法是将我的应用程序添加到Android的自动同步服务(即添加例如Gmail应用程序,WhatsApp的一个)。

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?

感谢你这么多,

Vyrphan

推荐答案

退房SampleSyncAdapter code SDK示例下。这将是在类似于一个目录;

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

C:/程序
  文件/ Android的/ Android的SDK /样本/ Android的10 / SampleSyncAdapter /

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

这篇关于Android应用程序的自动同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆