Skip to content

Running a code when alarm rings #263

Answered by gdelataillade
Yasser85 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, sorry I mixed that up in my head. You’re right—handleDelayedAlarm runs when the alarm is set, not when it goes off. If you want to run some code when the alarm starts ringing, that’s in AlarmService.

Just to make sure I got this straight: you want to drop the system volume to 0 when the alarm rings, and then bring it back up after a certain time, right?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Yasser85
Comment options

@Yasser85
Comment options

@gdelataillade
Comment options

Answer selected by Yasser85
@Yasser85
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants