I am working on my first Android application. So far, I have activity that responds to clicks on hardware volume controls. It was easy to do, but I wonder if there is a way to do this so that the application responds to these events from the hardware buttons, even when the phone is locked?
I am really looking for confirmation of whether this can be done. If someone could confirm and give me a general idea of how to do this, that would be great.
source
share