Hey Glenn,
Since you're looking at this thread anyway and you have tons of experience with Android audio,
can you tell me how to intercept Bluetooth button events?
I have a Parrot B350-XT headset which has 4 buttons:
1. VOL UP
2. VOL DOWN
3. POWER
4. "Parrot" button
The Android device is Samsung ST-230NU (OS: 4.4.2)
When:
1. the BT headset is connected (STATE_CONNECTED)
2. and the SCO audio channel is established (
SCO_AUDIO_STATE_CONNECTED)3. and the headset state changes to STATE_AUDIO_CONNECTED when SCO audio is connected
then I would like to be able to use the Bluetooth buttons to control certain features in my app, but I haven't
been able to find solid documentation on how this is done.
When I look in logcat I see that the only thing that is triggered when pressing the BT buttons is something called
HeadsetStateMachine.