Back to project page unicef_gis_mobile.
The source code is released under:
MIT License
If you think the Android project unicef_gis_mobile listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.unicef.gis.sync; /* w ww. java 2 s .co m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; public class SyncService extends Service { private static SyncAdapter syncAdapter = null; private static final Object syncAdapterLock = new Object(); @Override public void onCreate() { synchronized (syncAdapterLock) { if (syncAdapter == null) { syncAdapter = new SyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return syncAdapter.getSyncAdapterBinder(); } }