Monday, 15 August 2011

android - Editing an existing AlarmClock instead of creating a new one -


Currently I am using this method to create a new alarm at a given time: < Pre class = "Lang-java topprint-override"> Private zero set alarms (int hour, int minute) {intent newAlarm = new intention (alarmclock.action_SEEALarm); NewAlarm.putExtra (alarmclock.EXTRA_HOUR, hour); NewAlarm.putExtra (alarm clock.EXTRA_MINUTES, minute); NewAlarm.putExtra (AlarmClock.EXTRA_SKIP_UI, true); StartActivity (newAlarm); }

The problem with this is that it creates a new alarm all the time

>

No it is not possible but if you use an alarmmaster with a pending intent, you can set it to You can cancel it before.

No comments:

Post a Comment