tags:

views:

10

answers:

0

Hi, I am trying to catch media key event from a headphones that have media controls. I registered a BroadcastReceiver for the MEDIA_BUTTON intent. This code generally works on devices that doesn't have the default android music player, I could catch all the MEDIA_BUTTON intents on my Sony X10. It doesn't work on my friend's HTC, it seems I could never receive any of the intents.

I know in 2.2 there is a new API, registerMediaButtonReceiver but I don't have access to 2.2.

Please help!