Currently I am using this method to create a new alarm at a given time: < Pre class = "Lang-java topprint-override"> 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. 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); }
No comments:
Post a Comment