问题
I would like to handle an AT command (for double tap event) from a standard Bluetooth mono headset. By default, the double tap sends AT+BLDN command (Redial event) to the phone. According to Android documentation, registering a Broadcast Receiver for
android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT
will handle all such vendor related AT commands. But, it is not being invoked when the AT command is sent by the headset. Though, the redial event happens on the phone.
回答1:
AT+BLDN is a standard(GSM) command for redialing. So it is handled by the system itself.Moreover as per my understanding the device should support those specific commands which are for ex:plantronics specific command then only user will be able to get notification about that command.
来源:https://stackoverflow.com/questions/17176162/how-to-handle-at-commands-from-a-bluetooth-headset-in-android