Back to project page sunshine.
The source code is released under:
Apache License
If you think the Android project sunshine 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 com.zmb.sunshine.sync; //from w w w .j a va 2 s . co m import android.app.Service; import android.content.Intent; import android.os.IBinder; public class SunshineSyncService extends Service { private static final Object sLock = new Object(); private static SunshineSyncAdapter sSyncAdapter; @Override public void onCreate() { super.onCreate(); synchronized (sLock) { if (sSyncAdapter == null) { sSyncAdapter = new SunshineSyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return sSyncAdapter.getSyncAdapterBinder(); } }