I currently have an alarm that plays at a given time and would like to be able to cancel the alarm by pressing either of the volume keys. This would allow the user to silence the alarm if they are in a meeting for example.
I have tried this method to no avail. What I did was create a new service and add the manifest lines from the link as well as the starting intent but pressing the volume buttons never started the service.
Any suggestions?
I have tried this method to no avail. What I did was create a new service and add the manifest lines from the link as well as the starting intent but pressing the volume buttons never started the service.
Any suggestions?