Bluetooth - pairing

pawel2420

Member
Licensed User
Longtime User
Device not been previously paired.
Calling Serial1.Connect ....
I get the message "IOException: Connection refused".
Does the B4A can call the pairing ?
 

pawel2420

Member
Licensed User
Longtime User
The following example connections are made only to previously paired devices.
My device that is not paired.
Does the B4A can call the "pairing dialog": http://developer.android.com/images/bt_pairing_request.png ?

Note (http://developer.android.com/guide/topics/wireless/bluetooth.html):
If the two devices have not been previously paired, then the Android framework will automatically show a pairing request notification or dialog to the user during the connection procedure. So when attempting to connect devices, your application does not need to be concerned about whether or not the devices are paired. Your RFCOMM connection attempt will block until the user has successfully paired, or will fail if the user rejects pairing, or if pairing fails or times out.
 
Last edited:
Upvote 0

pawel2420

Member
Licensed User
Longtime User
I run the sample program "Bluetooth", click "Search for devices".
I choose the paired device -> connection SPP is made.
I choose the unpaired device -> message "IOException: Connection refused".
It does not show a dialog to confirm the pairing process.

I have tested with:
B4A ver. 1.90
Serial (version 1.21)
Samsung GT-S5350
Tablet (Android 2.3)

I know where the problem is.
I have a different bluetooth device. By standard Android menu paired all, by B4A only part.
 
Last edited:
Upvote 0
Top