Back to project page DoItNow.
The source code is released under:
GNU General Public License
If you think the Android project DoItNow 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.px.do_it_now; /*from w w w . j a v a 2 s .c om*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class AlarmReciever extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Utilities.showMessage("Alarm Triggered", context); WakeIntentService.acquireStaticLock(context); Log.i("AlarmReciever", "After wake Intent Service"); Intent alert = new Intent(context, AlarmService.class); Log.i("AlarmReciever", "After intent alert"); context.startService(alert); Log.i("AlarmReciever", "Service is started"); } }