cbd00d42980d08728783d1d4a65f22977ed541e8
2 package eu
.alefzero
.owncloud
.syncadapter
;
4 import android
.app
.Service
;
5 import android
.content
.Intent
;
6 import android
.os
.IBinder
;
8 public class SyncService
extends Service
{
9 private static final Object sSyncAdapterLock
= new Object();
10 private static SyncAdapter sSyncAdapter
= null
;
16 public void onCreate() {
17 synchronized (sSyncAdapterLock
) {
18 if (sSyncAdapter
== null
) {
19 sSyncAdapter
= new SyncAdapter(getApplicationContext(), true
);
28 public IBinder
onBind(Intent intent
) {
29 return sSyncAdapter
.getSyncAdapterBinder();