I'm having an issue here while trying to connect to an RS232 device
with the BluetoothChat sample program.

1- If I first pair my phone with the device through Bluetooth
Settings, no problem. The connection is made perfectly and the program
works.

2- If not bonded beforehand, I get two errors in a row when I click on
my device :

03-03 13:38:20.000: INFO/BluetoothChatService(3625): BEGIN
mConnectThread
03-03 13:38:20.020: ERROR/BluetoothService.cpp(2077):
stopDiscoveryNative: D-Bus error in StopDiscovery:
org.bluez.Error.Failed (Invalid discovery session) // Probably because
we're calling cancelDiscovery() as a "security" (it's already been
cancelled at some point beforehand)
03-03 13:38:20.040: ERROR/BluetoothEventLoop.cpp(2077):
onCreateDeviceResult: D-Bus error: org.bluez.Error.AlreadyExists
(Device already exists) // This I don't understand
03-03 13:38:20.050: VERBOSE/BluetoothEventRedirector(2136): Received
android.bleutooth.device.action.UUID

I tried to check out the Android Source by myself but, given that I'm
a newbie, it's kind of tough. If some experienced guy could work it
out, it'd be great : do you know how I can change the code so it can
do whatever the Bluetooth Settings application does before trying to
connect ? Thanks by advance,

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to