1) I get "Failed to connect to SDP server on 00:12:F3:04:80:80:
Connection timed out", but if I run sdptool records:
$ sdptool records 00:12:F3:04:80:80
sdptool records 00:12:F3:04:80:80
Service Name: SPP
Service RecHandle: 0x10001
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1

Failed to connect to SDP server on 00:12:F3:04:80:80: Connection timed
out

I tried the link and that method still fails although there was
success posted here
http://stackoverflow.com/questions/2660968/

my code
public void test(BluetoothDevice d) throws Exception
    {
        BluetoothSocket tmpsock = null;
        OutputStream out = null;
        InputStream in = null;

        Method m = d.getClass().getMethod("createRfcommSocket", new
Class[] { int.class });
        tmpsock = (BluetoothSocket)m.invoke(d, 1);
        Log.d("BT", "CONNECTING!!!!");
        tmpsock.connect();
        Log.d("BT", "CONNECTED!");
        ...
}

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