Back to project page Multi-Mania-app.
The source code is released under:
MIT License
If you think the Android project Multi-Mania-app 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 be.ana.nmct.multimania.service; /*w w w.ja va 2 s. co m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; /** * Created by Astrid on 16/11/2014. */ public class SyncService extends Service { private static SyncAdapter sSyncAdapter = null; private static final Object sSyncAdapterLock = new Object(); public SyncService(){} @Override public void onCreate() { super.onCreate(); synchronized (sSyncAdapterLock){ if(sSyncAdapter == null){ sSyncAdapter = new SyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return sSyncAdapter.getSyncAdapterBinder(); } }