Thinking of having a tinker with Bluetooth and car audio....
My phone obviously connects to my Car's head unit using Bluetooth.
If I start a call using my phone the head unit switches to the Bluetooth connection for duration of the call, how would I do that in an app?
For example, if I wanted to get my android phone to 'take over' the head unit and play a sound...
Just curious...
There are all kinds of profiles related to classic Bluetooth (not BLE). The one that you can access with the Serial library is the SPP profile. It is not related to audio routing.
Audio profiles are managed by the OS>
You can play a sound during a call. You cannot "inject" the sound to the audio channel during a call.