Is there a way to make an android app respond to hardware buttons while phone locked?
<p>I'm working on my first android app.  So far I have an activity that reacts to clicks on the hardware volume controls.  That's was easy to do, but I'm wondering if there is a way to make it so the app responds to these events from the hardware buttons even while the phone is locked?</p>

<p>I'm really looking for a confirmation of whether or not this can be done.  If someone could confirm and give me the general idea of how to do it that would be awesome.</p>
