Hi All
Has anyone any issues with StartBluetoothSco not working on Android 5.0, specifically 5.1.1
I have built a PTT server using B4J, and have a prototype client on B4A. Our customers want to use Bluetooth PTT mic's and it works fine except on this version of android. I have seen other threads on the forum about how to use StartBluetoothSco, but no mention of anyone having issues with it working.
These are the start and stop functions:
Any help, guidance would be appreciated.
Regards
John.
Has anyone any issues with StartBluetoothSco not working on Android 5.0, specifically 5.1.1
I have built a PTT server using B4J, and have a prototype client on B4A. Our customers want to use Bluetooth PTT mic's and it works fine except on this version of android. I have seen other threads on the forum about how to use StartBluetoothSco, but no mention of anyone having issues with it working.
These are the start and stop functions:
B4X:
Sub StartBluetoothSco()
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
r.RunMethod("startBluetoothSco")
Log("startBluetoothSco")
End Sub
Sub stopBluetoothSco()
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
r.RunMethod("stopBluetoothSco")
Log("stopBluetoothSco")
End Sub
Any help, guidance would be appreciated.
Regards
John.