I´m developing a music application.
When an alarm starts, the streaming of music must stop.
The problem is how to detect the alarm event. The alarm may sound at any time. It is set by the user with the android alarm system.
Asked
Active
Viewed 1,533 times
1

Nikolai Samteladze
- 7,699
- 6
- 44
- 70

Juanfren
- 51
- 1
- 1
- 4
-
1set broadcast reciever to listen that event – Vishal Pawar Sep 25 '12 at 08:45
-
This should solve your problem http://stackoverflow.com/questions/11844657/how-to-detect-alarm-ringing-or-other-apps-using-speaker – Royston Pinto Sep 25 '12 at 09:01
-
ok, I have read the post http://stackoverflow.com/questions/11844657/how-to-detect-alarm-ringing-or-other-apps-using-speaker – Juanfren Sep 25 '12 at 12:09
-
but my app not working. I have created an broadcast receiver, but i don´t know how to detect the alarm event. Please help. – Juanfren Sep 25 '12 at 12:11