title: HTC desire BluetoothSocket connect freezes
body: <p>I working on project, involving BT connection. I have performed tests with phones like Nexus S, Nexus Galaxy and everything worked good.
  The issue is with HTC desire. First of all, I have to connect to PC via port, so I use reflection</p>
  
  <pre><code>Method m = device.getClass().getMethod("createRfcommSocket",
              new Class[] { int.class });
  BluetoothSocket socket = (BluetoothSocket) m.invoke(device, port);
  socket.connect();
  </code></pre>
  
  <p>socket.connect() freezes the thread forever, just like socket.close();
  Also from Android logs I can see strange messages:</p>
  
  <blockquote>
    USERIAL_Ioctl: BT_Sleep, USERIAL_IO_BT_WAKE_DEASSERT
  </blockquote>
  
  <p>Reboot didn't help. But the strange thing, that issue is reproducable time to time.</p>
  
  <p>Thanks for any comments.</p>