Back to project page appsensor.
The source code is released under:
GNU General Public License
If you think the Android project appsensor 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 de.dfki.appsensor.sync; // w w w. j a v a 2 s.c om import android.app.Service; import android.content.Intent; import android.os.IBinder; /** * Service for synchronizing data to the server. * * @author Matthias Boehmer, matthias.boehmer@dfki.de */ public class AppUsageSyncService extends Service { private static final Object sSyncAdapterLock = new Object(); private static AppUsageSyncAdapter sSyncAdapter = null; @Override public void onCreate() { //Utils.dToast("AppUsageSyncService:onCreate"); synchronized (sSyncAdapterLock) { if (sSyncAdapter == null) { sSyncAdapter = new AppUsageSyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return sSyncAdapter.getSyncAdapterBinder(); } }