Yes! I have used that code for a long time in my app in my old car that didn't have android auto. Works very good, interrupts the current audio as it is a phone call, and the audio goes out of my speaker with "phone" quality. Actually, my first plan with the new car was to have two phones connected, one only for google maps navigation in android auto, and the other phone like i had it in my old car. But that didn't work. When having a phone connected to android auto, volkswagen doesn't allow another phone to be connected to bluetooth at the same time. (Having 2 phones connected at the same time on bluetooth is a new feature of the MIB2 in the Volkswagen MQB platform)
Actually, after upgrading to Lollipop it stopped working, so after some reversed engineering I ended up with this:
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
r.RunMethod("startBluetoothSco")
r.RunMethod2("setMode", 3, "java.lang.int")
r.RunMethod2("setSpeakerphoneOn", True, "java.lang.boolean")
For n = 1 To 2
Sleep(1000)
Next
r.RunMethod2("setBluetoothScoOn", True,"java.lang.boolean")
But, still not work when connected to Android Auto.....
(Of course have I tried totally without the code above also...)