Android Open Source - unicef_gis_mobile Sync Service

From Project

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.

Java Source Code

package org.unicef.gis.sync;
/* w ww.  java 2  s .co  m*/
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();
    public void onCreate() {
        synchronized (syncAdapterLock) {
            if (syncAdapter == null) {
                syncAdapter = new SyncAdapter(getApplicationContext(), true);

    public IBinder onBind(Intent intent) {
        return syncAdapter.getSyncAdapterBinder();

Java Source Code List