简体   繁体   English

将Android手机与第三方服务器同步

[英]Sync Android phone with a third-party server

Do you know if the Android SDK provides some classes, interfaces or methods to help developers to create a mechanism in order to synchronize application data between the phone and a third-party server ? 您是否知道Android SDK是否提供了一些类,接口或方法来帮助开发人员创建机制以便在手机和第三方服务器之间同步应用程序数据? Or should we build this mechanism from scratch ? 或者我们应该从头开始构建这个机制?

I've heard about C2DM for Push notification but it is available only from Android 2.2 and my application must support Android 2.1. 我听说过有关推送通知的C2DM,但它仅适用于Android 2.2,我的应用程序必须支持Android 2.1。

Android does synchronization between data stored locally in a content provider and a remote service by means of a SyncAdapter . Android通过SyncAdapter在内容提供者和远程服务中本地存储的数据之间进行同步。

Here you have a full example and some docs . 这里有一个完整的例子和一些 文档

It s been a while but I couldnT find a lot of info on Sync management in Android nowadays either. 已经有一段时间了,但我现在也无法在Android中找到关于同步管理的大量信息。 I wanted to add another link. 我想添加另一个链接。 :

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM