Hi,

I would like to create an application to establish a RFComm
communication with other Bluetooth devices (not Android). I'm using
the Bluetooth API.

I'm able to scan nearby devices, but when I select one to connect, I
get the following error:

E/BluetoothEventLoop.cpp(   92): onCreateDeviceResult: D-Bus error:
org.bluez.Error.AlreadyExists (Device already exists)

but the device isn't paired.

Which UUID do I need to use?I'm trying with this:

BluetoothDevice device = btadapter.getRemoteDevice(address);

String s = new String("RFCOMM");
byte[] identifier=s.getBytes();
uuid=UUID.nameUUIDFromBytes(identifier);

BluetoothSocket socket =
device.createRfcommSocketToServiceRecord(uuid);
socket.connect();

but the connection fails

Thanks

-- 
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