简体   繁体   中英

How to find the name of a media button on a Bluetooth headset?

I have a Bluetooth headset which has a special button different from the normal media buttons, and I am trying to find how is that button called in order to call a separate application when this button is pressed. I have tried to listen for the Bluetooth headset intents but no luck for the moment. If you guys can give me any hints or point me in the right direction would be much appreciated.

You headset is probably broadcasting a Vendor Specific Headset Event .

This is the standard intent to broadcast a "special" action from Bluetooth. You can register a listener on this intent on the BluetoothHeadset class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM