Dim joa As JavaObject
joa = joa.InitializeStatic("android.bluetooth.BluetoothAdapter").RunMethod("getDefaultAdapter", Null)
Log(joa.RunMethod("getName", Null)) ' gets my BT name - just checking
Dim job As JavaObject
job = joa.RunMethod("getRemoteDevice", Array As String ("98:D3:31:30:2C:04")) ' mac address of remote BT
' after this "job" has the object that is the remote device
Log(job.RunMethod("getName", Null)&" is "&BondStateToString(job.RunMethod("getBondState", Null)))
' gets the friendly name of the remote BT as a check
' see if unpair call works
If job.RunMethod("removeBond", Null) Then
Log("Remove true")
Else
Log("Remove false")
End If