Back to project page sthlmtraveling.
The source code is released under:
Apache License
If you think the Android project sthlmtraveling 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.markupartist.sthlmtraveling.receivers; // w w w . ja v a 2s .c om import com.markupartist.sthlmtraveling.service.DeviationService; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.SystemClock; import android.util.Log; public class OnBootReceiver extends BroadcastReceiver { //private static final int PERIOD = 300000; // 5 minutes private static final int PERIOD = 300000; // 5 minutes private static final String TAG = "OnBootReceiver"; @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "OnBootReceiver"); DeviationService.startAsRepeating(context); } }