Hi all, i have a problem with the serial library on an android 4 device (Galaxy Tab).
My app connects perfectly an OBD device with my motorola atrix (2.3.4) but when i try my app on Galaxy Tab (ICS) it won't connect.
Return me java exceptions saying "Invalid Exchange" and asks me to pair device again (i already did it).
Some idea? Tried Connect3 and ConnectInsecure with port 1 but didn't work...
Here's my code for the connection
Thanks
My app connects perfectly an OBD device with my motorola atrix (2.3.4) but when i try my app on Galaxy Tab (ICS) it won't connect.
Return me java exceptions saying "Invalid Exchange" and asks me to pair device again (i already did it).
Some idea? Tried Connect3 and ConnectInsecure with port 1 but didn't work...
Here's my code for the connection
B4X:
Sub Admin_DiscoveryFinished
ProgressDialogHide
If foundDevices.Size = 0 Then
...
Else
Dim l As List
l.Initialize
For i = 0 To foundDevices.Size - 1
Dim nm As NameAndMac
nm = foundDevices.Get(i)
l.Add(nm.Name)
Next
Dim res As Int
res = InputList(l, "Select", -1)
If res <> DialogResponse.CANCEL Then
connectedDevice = foundDevices.Get(res)
serial1.Connect(connectedDevice.Mac)
End If
End If
End Sub
Thanks