In the latest update (which was recently) for one of my app (a video recorder) for Android smartphones I have added an option to record audio from a connected BT device. It can be done with the following function:
AudioManager.startBluetoothSco()
Today I have received the following review from one of my users:
I start the app and recording and it starts making phone calls on my cars Bluetooth radio
The user's device is Samsung Galaxy S23 Ultra on Android 14 (from Goolge Play Console) which he connects to his car radio I believe while he's driving his car
Can it be related? And why does it happen? My app doesn't have any code to make phone calls, only AudioManager.startBluetoothSco()/AudioManager.stopBluetoothSco()
was added in the latest update when I start/stop recording with MediaRecorder
Yeah, this is definitely caused by
AudioManager.startBluetoothSco()
when a smartphone is connected to a Car Radio (Head Unit) by Bluetooth.Insane... I hate some Google's Android's developers.
Another review from one of my users when this option is enabled:
p.s.: When you are using this option on a smartphone which is connected to just some BT Headset then it works fine and audio is being recorded normally from this BT device instead of phone's built-in mic