-1

I develop an application which must manage the Alarm Clock in Android. I specifically need to do the following:

  • execute some code in my application when the user sets an alarm (also find out the time of the alarm at the moment of execution);
  • cancel an alarm when the user pushes a specific button in my application;
  • execute some code in my application when an alarm goes off.

I must mention that I am not interested in the CPU alarms, but the Alarm Clock application, which people use to wake up.

Andrei Micu
  • 3,159
  • 1
  • 17
  • 20
  • Looks like this: http://stackoverflow.com/questions/9618748/android-how-to-set-system-alarm-clock-from-my-own-app – brthornbury Sep 12 '12 at 15:03

1 Answers1

0

You can set an alarm using the intent described here.

However, you can not intercept the AlarmClock UI or ringing alarms as you seek to.

You might want to look into scheduling your own reminders, probably using AlarmManager with RTC_WAKEUP.

323go
  • 14,143
  • 6
  • 33
  • 41