Own sync adapter for Android?(自己的 Android 同步适配器?)
问题描述
Android 2.0 的新闻稿称,新版本支持同步适配器,因此电子邮件和日历不能只与 gmail 和 Exchange 同步.但是,网上没有关于如何编写这样一个同步适配器的信息.有没有人尝试过并提供了一些示例代码?
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?
推荐答案
Sam Steele 的这两篇文章(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.
- 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 同步适配器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:自己的 Android 同步适配器?
基础教程推荐
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
