Does anyone have an idea why bluetooth AVRC buttons (play/pause FF/RW) are not recognized on HTC Hero devices. The same code works fine on G1 and MyTouch 3G phones.
The code actually also correctly recognizes the WIRED headset's button press on the Hero - but the bluetooth button presses go directly to the built in Android Media Player. I am guessing that on the Hero, there may be other Intent (other than "Intent.ACTION_MEDIA_BUTTON") to broadcast the bluetooth button presses? If this is the case it would explain why they go directly to the Media Player. Here is the code I am using: *For registering: IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_MEDIA_BUTTON); filter.addAction("android.media.AUDIO_BECOMING_NOISY"); filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); registerReceiver(_Receiver, filter); * For the receiver: public void onReceive(Context context, Intent intent) { String intentAction = intent.getAction(); if ("android.media.AUDIO_BECOMING_NOISY".equals(intentAction)) { //pause the playback } else if (Intent.ACTION_MEDIA_BUTTON.equals(intentAction)) { //handle buttons } } Stefan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---