自己的同步适配器为Android? [英] Own sync adapter for Android?

查看:129
本文介绍了自己的同步适配器为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安卓的preSS版本2.0的状态,新版本支持同步适配器,从而使电子邮件和日历不仅可以与Gmail和交换同步。但是,怎么写这样的同步适配器可在网上没有的信息。有没有人尝试过​​了,一些示例code可用?

The press release of Android 2.0 states that the new release supports sync adapters so that emails and calendars cannot only be synced with gmail and exchange. However, there is no information available online how to write such a sync adapter. Has anyone tried it and some example code available?

推荐答案

这两篇文章由山姆·斯蒂尔(2010年1月23日)是对的 last.fm 同步适配器。千万不要错过第二部分,所提到的在文章末尾的​​开源项目。

These two articles by Sam Steele (January 23rd, 2010) are about the implementation of the last.fm sync adapter. Do not miss the second part and the opensource projects that are mentioned at the end of the articles.

  • <一个href="http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/">http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/
  • <一个href="http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/">http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/
  • <一个href="https://github.com/c99koder/lastfm-android/">https://github.com/c99koder/lastfm-android/
  • <一个href="https://github.com/c99koder/AndroidSyncProviderDemo">https://github.com/c99koder/AndroidSyncProviderDemo
  • http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/
  • http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/
  • https://github.com/c99koder/lastfm-android/
  • https://github.com/c99koder/AndroidSyncProviderDemo

这篇关于自己的同步适配器为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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