title: Android app with camera shutter onkeyevent when screen is locked or off
body: <p>I made an app that uses the onkeyevent functions to capture the bluetooth camera shutter buttons with up and down volumes.  I am trying to use it for a camera app to take pictures when the screen is off.</p>
  <p>However this no longer works if the screen is locked or off. The minute the screen is back on the function works again.  So I know the bluetooth is still connected.</p>
  <p>Can anyone with experience in this tell me if it's possible for the phone to capture bluetooth events when the screen is off.  What changes should I make.</p>