Shofiqul Alam
Shofiqul Alam

Reputation: 615

android bluetooth routing on lollipop

In my app through which user can call to any number, I'm starting the bluetooth through

audioManager.setBluetoothScoOn(true);
audioManager.startBluetoothSco();

It works on all devices, but on android 5.0.1: it uses the microphone of the phone, not the microphone of bluetooth headset.

On previous android os: it works, but not on lollipop: only incoming audio is routed to bluetooth headset, but it never uses the bluetooth microphone.

Upvotes: 2

Views: 539

Answers (1)

Willis
Willis

Reputation: 5336

Have you tried explicitly disabling the speakerphone? Try something like the following:

audioManager.setSpeakerphoneOn(false);
audioManager.setBluetoothScoOn(true);
audioManager.startBluetoothSco();

Upvotes: 1

Related Questions