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 同步适配器?


- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01