Terminightor icon indicating copy to clipboard operation
Terminightor copied to clipboard

Separated by a few hours on repeat

Open tfl33 opened this issue 10 years ago • 3 comments

Hi: Your alarm clock is great, How to Write a Will repeated after a few hours ringing it? Thank you

tfl33 avatar Oct 21 '15 08:10 tfl33

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?

theScrabi avatar Oct 22 '15 09:10 theScrabi

Yes, how to write it?

tfl33 avatar Oct 29 '15 09:10 tfl33

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.

theScrabi avatar Oct 29 '15 23:10 theScrabi