After my post, i need to determinate if the bluetooth headset is connected
looking for the internet i found the isBluetoothScoOn() method:
but this method not works on my phone and in this link explains that this feature works only on rooted devices
There are other solutions?
someone has tested?
thanks
alberto
looking for the internet i found the isBluetoothScoOn() method:
B4X:
Sub IsBluetoothHeadsetOn As Boolean
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
Return r.RunMethod("isBluetoothScoOn")
End Sub
but this method not works on my phone and in this link explains that this feature works only on rooted devices
There are other solutions?
someone has tested?
thanks
alberto