[android-developers] Re: headset button

2011-03-15 Thread Pasomas
skyhigh skyhigh1001 at gmail.com writes: For a media application you need to register a broadcast receiver for Intent.ACTION_MEDIA_BUTTON and then when the callback is called you want to handle the following key codes: These key codes are sent from Bluetooth devices such as headphones and

[android-developers] Re: headset button

2010-02-21 Thread skyhigh
For a media application you need to register a broadcast receiver for Intent.ACTION_MEDIA_BUTTON and then when the callback is called you want to handle the following key codes: These key codes are sent from Bluetooth devices such as headphones and in car stereos: KEYCODE_MEDIA_PLAY_PAUSE

Re: [android-developers] Re: headset button

2010-02-19 Thread Porting beginner
On Sun, Feb 1, 2009 at 1:01 AM, Nick Pelly npe...@google.com wrote: For wired headsets, you can use Intent.ACTION_MEDIA_BUTTON as mentioned in the other thread. This is how the built in media app does pause/play on wired headset button presses, and where I recommend that you hook in. For

Re: [android-developers] Re: headset button

2010-02-18 Thread Porting beginner
On Sun, Feb 1, 2009 at 1:01 AM, Nick Pelly npe...@google.com wrote: For wired headsets, you can use Intent.ACTION_MEDIA_BUTTON as mentioned in the other thread. This is how the built in media app does pause/play on wired headset button presses, and where I recommend that you hook in. For

[android-developers] Re: headset button

2009-02-01 Thread Nick Pelly
For wired headsets, you can use Intent.ACTION_MEDIA_BUTTON as mentioned in the other thread. This is how the built in media app does pause/play on wired headset button presses, and where I recommend that you hook in. For Bluetooth headsets, they do not work like you think. There is no 'button

[android-developers] Re: headset button

2009-01-31 Thread deepdr...@googlemail.com
you may want to look at http://groups.google.com/group/android-developers/browse_thread/thread/1c64cf65f87c9895/1d9464c96b91dbd8?show_docid=1d9464c96b91dbd8 On Jan 30, 8:20 pm, Brodsky peter.brod...@gmail.com wrote: Hi!  Does anyone know how to tell when the headset button is being pressed?