自己的 Android 同步适配器?自己的、适配器、Android

2023-09-08 09:39:27 作者:温暖情系

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