Android Open Source - DoItNow Alarm Reciever






From Project

Back to project page DoItNow.

License

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.

Java Source Code

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");
            }
      
}




Java Source Code List

com.px.do_it_now.AlarmReciever.java
com.px.do_it_now.AlarmService.java
com.px.do_it_now.DatePicker.java
com.px.do_it_now.MainActivity.java
com.px.do_it_now.TimePicker.java
com.px.do_it_now.Utilities.java
com.px.do_it_now.WakeIntentService.java