I am trying to connect to a Bluetooth headset, and it fails at the
time of connect with an error: "Service Discovery Failed". Following
is the code snippet.

BluetoothSocket btsock =
device.createRfcommSocketToServiceRecord(UUID.fromString("00000003-0000-1000-8000-00805F9B34FB"));
btsock.connect();

Obviously, the problem is with the UUID.

We've a J2ME implementation that can connect to the headset with UUID
as:
final UUID RFCOMM_UUID = new UUID(0x0003);

Same headset can be connected on Symbian implementation using:
KSerialPortUUID = 0x1101;

We do not have the folks who worked on both J2ME and Symbian.
What should be the UUID in Android? What would be the 128 bit UUID for
SerialPort service?

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