Separated by a few hours on repeat
Hi: Your alarm clock is great, How to Write a Will repeated after a few hours ringing it? Thank you
I'm not sure if i understand what you mean. You mean repeating the alarm by a certain amount of time, not a certain point of time?
Yes, how to write it?
So that means you want to implement that feature. Hm ok:
The alarm is set up via AlarmSetupManager. This will set up a PendingIntent via Android AlarmManager. There you could add another method, which will set up a repeating alarm. All NightKiller* classes are there, for when the alarm goes of. Therefore NightKillerReceiver will receive the PendingIntent set up via Alarm SetupManager. You don't need to bother about NightKiller classes, its just important to know what Extra data you should put into the PendingIntent when setting the alarm up.