Back to project page piwik_android_sdk.
The source code is released under:
MIT License
If you think the Android project piwik_android_sdk 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.anupcowkur.piwiksdk; // w w w . j ava 2 s . co m import android.app.Service; import android.content.Intent; import android.os.IBinder; public class PiwikSyncService extends Service { private static final Object sSyncAdapterLock = new Object(); private static PiwikSyncAdapter sSyncAdapter = null; @Override public void onCreate() { synchronized (sSyncAdapterLock) { if (sSyncAdapter == null) sSyncAdapter = new PiwikSyncAdapter(getApplicationContext(), true); } } @Override public IBinder onBind(Intent intent) { return sSyncAdapter.getSyncAdapterBinder(); } }