On Mon, Apr 11, 2011 at 8:43 AM, Thibaud Ringenbach
<[email protected]> wrote:
> Hello All,
>
> being a french developer, i need in my app to have 3 external buttons
> of the phone. It could be buttons of an headset pluged on the 3.5mm
> JACK. is that possible to intercept the play/next/prev buttons in
> order to launch functions in my app??

There are KeyEvents for various button presses that a running activity
can listen for via onKeyDown().

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!

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