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