- public void run() {
- if (D) Log.d(TAG, "ConnectThread: BEGIN");
- setName("ConnectThread");
-
- // Always cancel discovery because it will slow down a connection
- adapter.cancelDiscovery();
-
- synchronized (AltosBluetooth.this) {
- // Make a connection to the BluetoothSocket
- try {
- // This is a blocking call and will only return on a
- // successful connection or an exception
- socket.connect();
-