1 package eu
.alefzero
.owncloud
.syncadapter
;
3 import android
.app
.Service
;
4 import android
.content
.Intent
;
5 import android
.os
.IBinder
;
7 public class ContactSyncService
extends Service
{
8 private static final Object syncAdapterLock
= new Object();
9 private static AbstractOwnCloudSyncAdapter mSyncAdapter
= null
;
12 public void onCreate() {
13 synchronized (syncAdapterLock
) {
14 if (mSyncAdapter
== null
) {
15 mSyncAdapter
= new ContactSyncAdapter(getApplicationContext(),
22 public IBinder
onBind(Intent arg0
) {
23 return mSyncAdapter
.getSyncAdapterBinder();