I am using "android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT
" intent to get device specific AT commands. But the broadcastreciever didn't fire when I send AT command from MY Bluetooth Kit.
When I send AT+CHUP\r
from my kit the android work on this command internally and disconnects the call.
But when I send AT+XEVENT=foo,3\r
from kit but I am not getting any thing in receiver.
Help me out
have you use this ?
}
I also had a hard time getting the vendor specific headset event to work, but finally figured it out. You have to add the Category of vendor specific events you want to receive to the IntentFilter specified when registering the Broadcast Receiver.
After adding
my receiver now gets the Vendor Specific broadcasts from the bluetooth headset. Events such as
AT+XEVENT=foo,3\r