There was a thread last year on the topic of being able to intercept or respond to key strokes when the activity is not in focus.
I believe the general consensus was that there is no such facility and that it is a good thing for privacy reasons as well. On Fri, Jun 4, 2010 at 11:42 AM, Sean Hodges <[email protected]> wrote: > I'm not aware of a system-wide key press listener, but check out the > org.openintents.audio.action_volume_update bradcast intent: > > http://www.openintents.org/en/node/380 > > That should allow you to detect changes in the volume setting > (including the button presses). > > > On Fri, Jun 4, 2010 at 4:24 PM, EdKawas <[email protected]> wrote: >> Hello, >> >> I am trying to add a listener to my service that listens for volume >> key presses. I would like to act on presses even if my service is not >> in focus. Any idea how to do this? I have looked over the API, as well >> as performed google searches. >> >> Thanks! >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

