Code example for BluetoothSocket

Methods: close

        public void cancel() { 
        	RhoBluetoothManager.logi(TAG, "CAMCEL mConnectThread");
            try { 
            } catch (IOException e) {
            	RhoBluetoothManager.loge(TAG, "close() of connect socket failed");
     * This thread runs during a connection with a remote device. 
     * It handles all incoming and outgoing transmissions. 
    private class ConnectedThread extends Thread {
        private final BluetoothSocket mmSocket;
        private final InputStream mmInStream;
        private final OutputStream mmOutStream;