Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Own sync adapter for Android?

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?

like image 796
Seba Avatar asked Dec 07 '09 10:12

Seba


3 Answers

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
like image 193
white_gecko Avatar answered Oct 11 '22 21:10

white_gecko


This article, http://ericmiles.wordpress.com/2010/09/22/connecting-the-dots-with-android-syncadapter/, is a great, albeit brief overview of creating a sync adapter and getting it to play nice within the Android framework.

like image 38
Jerry Brady Avatar answered Oct 11 '22 19:10

Jerry Brady


Simple basic explanation by Adam Pullen (last updated May 13, 2011). The article consists of two parts and contains the ShowMyAccountAuthenticator example project.

  • http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step
  • http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step-1
  • http://www.finalconcept.com.au/uploads/files/showmyaccountauthenticator.zip
like image 27
xtem Avatar answered Oct 11 '22 19:10

xtem