On Tue, Feb 15, 2011 at 10:42 AM, Felipe Monteiro de Carvalho
<[email protected]> wrote:
> Does anyone know how I can receive events from the volume buttons?

Implement onKeyDown() in your activity.

> And will the event arrive even if the screen is off?

If there is a suitable WakeLock in force, apparently yes.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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

Reply via email to