Android Question if possible get status A2DP bluetooth audio is connect

scsjc

Well-Known Member
Licensed User
Longtime User
Hello,
i want know if is possible know from background service is A2DP BLUETOOTH AUDIO is conected?

i found this code, but i don't know if the states 10...11...12...13.. tell something about this
thanks!!!!

B4X:
Dim BluetoothAdmin1 As BluetoothAdmin
BluetoothAdmin1.Initialize("BluetoothAdmin1")

Sub BluetoothAdmin1_StateChanged (NewState As Int, OldState As Int)
    Log(NewState)
    Log(OldState)

End Sub
 
Top