简体   繁体   English

如何在蓝牙耳机上找到媒体按钮的名称?

[英]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. 您可以在BluetoothHeadset类上注册此intent上的侦听器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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