Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separated by a few hours on repeat #1

Open
tfl33 opened this issue Oct 21, 2015 · 3 comments
Open

Separated by a few hours on repeat #1

tfl33 opened this issue Oct 21, 2015 · 3 comments

Comments

@tfl33
Copy link

tfl33 commented Oct 21, 2015

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

@theScrabi
Copy link
Owner

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?

@tfl33
Copy link
Author

tfl33 commented Oct 29, 2015

Yes, how to write it?

@theScrabi
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants