Back to project page apps-android-commons.
The source code is released under:
Apache License
If you think the Android project apps-android-commons 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 org.wikimedia.commons.campaigns; //from w w w . j av a2 s .c om import android.app.Service; import android.content.Intent; import android.os.IBinder; import org.wikimedia.commons.contributions.ContributionsSyncAdapter; public class CampaignsSyncService extends Service { private static final Object sSyncAdapterLock = new Object(); private static CampaignsSyncAdapter sSyncAdapter = null; @Override public void onCreate() { synchronized (sSyncAdapterLock) { if (sSyncAdapter == null) { sSyncAdapter = new CampaignsSyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return sSyncAdapter.getSyncAdapterBinder(); } }