Android Question When trying to connect over Bluetooth, I'm not asked for pairing

yo3ggx

Active Member
Licensed User
Longtime User
Hello.

I'm trying to run the example from [B4XPages] Bluetooth Chat Example on a device with Android Pie (SDK 28).
When selecting the device from the list, I'm not asked for pairing and I'm getting the error:
java.io.IOException: read failed, socket might closed or timeout, read ret: -1

If I try to pair the device in advance from Android Bluetooth settings, connection is successful.

Is working as expected on Android 4.4 (KitKat) and Android 11 (asking for pairing).
Any hints?

Thank you.
 

AscySoft

Active Member
Licensed User
Longtime User
I encountered this behavior in Android 10 with a chinese mobile printer, and after a few tryes the device was asking for a pair password. Strange, but as you did said, the solution is to "pair the device in Android Bluetooth settings", it's always working.
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Another strange thing is that if the BT device does not have a pairing pin, the connection is successful, but the device does not appear in the list of paired devices.
 
Upvote 0
Top