Back to project page Weather-app.
The source code is released under:
Apache License
If you think the Android project Weather-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 app.sunshine.juanjo.sync; // www . j a v a 2 s .com import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; /** * Created by juanjo on 29/08/14. */ public class SunshineSyncService extends Service { private static final Object sSyncAdapterLock = new Object(); private static SunshineSyncAdapter sSunshineSyncAdapter = null; @Override public void onCreate() { Log.d("SunshineSyncService", "onCreate - SunshineSyncService"); synchronized (sSyncAdapterLock) { if (sSunshineSyncAdapter == null) { sSunshineSyncAdapter = new SunshineSyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return sSunshineSyncAdapter.getSyncAdapterBinder(); } }