Bluetoothsocket timeout on read and write
<p>I'm designin an application in Android that connects the mobile to a bluetooth device. I can do this, as I open a BluetoothSocket like this:</p>

<pre><code>Method m = device.getClass().getMethod("createRfcommSocket", new Class[] {int.class});
socket = (BluetoothSocket) m.invoke(device, 1);
socket.connect();
</code></pre>

<p>Where <em>device</em> is the paired device with the mobile bluetooth desired. The thing is, this external device is a bit special, and it has different times for writing and answering to the mobile, so I need to put some timeouts on my socket for reading and writing, but I've searched a lot and it seems like <em>BluetoothSocket</em> doesn't support this.</p>

<p>Can anybody tell me a different way to admin timeouts on reading and writing to the port on the <em>BluetoothSocket</em> class for Android?</p>

<p>Thank you!</p>
