title: BluetoothSocket - connection timeout
body: <p>It's there any way to set connection timeout to BluetoothSocket?</p>
  
  <p>If my device is offline, connection process takes a few seconds and then returns an error. I need to set the timeout to 1 second. It is possible?</p>
  
  <pre><code>BluetoothSocket socket = device.createRfcommSocketToServiceRecord(APP_UUID);
  // socket.setProxyConnectionTimeout(1000); &lt;- some like this
  socket.connect();
  </code></pre>
  
  <p>BluetoothSocket class have PROXY_CONNECTION_TIMEOUT, but never used...
  Thanks for answers.</p>
  
  <p>BTW:</p>
  
  <p>I try some like this:</p>
  
  <pre><code>socket.connect();
  Thread.sleep(1000);
  socket.close(); // but socket is not closed &amp; still connecting
  </code></pre>