I want to be able to capture key events inside a service I am writing. I can do this inside an activity without problems, but all my attemps to get this working in a service
If you just want to capture the event of changing volume regardless of volume button is pressed or not, this answer would helpful.
any way to detect volume key presses or volume changes with android service?