I would like to set a normal, Android alarm clock in my app - the one in the default Android Clock application. I simply want to schedule a an alarm that will ring let's say tomorrow at 8 a.m. I've read about the Alarm Manager, but it seems to trigger an event, and I just want it to ring. I'm pretty sure there's an easy solution for that, but I couldn't find it. I'll apprecaite any help!
Asked
Active
Viewed 7,481 times
6
-
4I think that does not work. You need to tell the alarm app (which is not always the same on every device) that it should ring. That app is not part of the Android API itself so you might need to build your own ringer. – zapl Mar 08 '12 at 14:09
2 Answers
0
It appears that there is no documented Intent
for launching the alarm clock in the Android SDK. Having said that, here are a few resources you can try that should get you around that:

Community
- 1
- 1

Marvin Pinto
- 30,138
- 7
- 37
- 54
-1
I ended up building my own ringer in the BroadcastReceiver, as zapl suggested (thanks!). Problem was, I couldn't create a dialog that would allow user to dismiss the alarm, however I was able to create a notification that does that, as the class documentation suggested.

ThunderSS
- 443
- 1
- 7
- 17