Native sync adapter for Android?

The Android 2.0 press release states that the new version supports synchronization adapters so that emails and calendars cannot be synchronized only with gmail and exchange. However, there is no information on the Internet on how to write such a synchronization adapter. Has anyone tried this and some sample code?

+21
android synchronization android-syncadapter
Dec 07 '09 at 10:45
source share
7 answers
+26
Aug 16 '10 at 23:32
source share

This article, http://ericmiles.wordpress.com/2010/09/22/connecting-the-dots-with-android-syncadapter/ , is an excellent, albeit brief overview of the creation of a synchronization adapter and its pleasant perception within Android.

+13
Oct 21 2018-10-21
source share

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

+4
Oct 17 '11 at 2:30 p.m.
source share

I was still studying, but this flow should help you understand a little.

http://www.mail-archive.com/android-developers@googlegroups.com/msg64769.html

+2
Dec 11 '09 at 14:10
source share

Kyle Miller's article (March 10, 2012) briefly describes how to get started with the SampleSyncAdapter project contained in the SDK samples. It describes how you can add an account for an application to the system settings of your phone. It mainly explains how the AuthenticationService , Authenticator and AuthenticatorActivity classes are used to handle server authentication using a token. At the end of the article there are a few words about authenticator.xml , syncadapter.xml and contacts.xml .

+1
Aug 04 2018-12-12T00:
source share

Here is what i found

Implements SyncAdapter for Contacts

Not sure if this is what we need to help us launch our own contact sync service.

0
Dec 18 '09 at 2:50
source share

I found this viewable source code of the android exchange sync adapter from android sources:

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.4_r2.1/com/android/exchange/adapter/ContactsSyncAdapter.java?av= f

They are not included when I manually checked android sources at http://source.android.com . Maybe someone can find the right sources for the original google calendar / contact sync adapter? (and not just MS-exchange)

Here is a German research document I found through google:

ftp://ftp.informatik.uni-stuttgart.de/pub/library/medoc.ustuttgart_fi/STUD-2348/STUD-2348.pdf

0
Feb 17 '13 at 20:34
source share