Code example for BluetoothServerSocket

Methods: close

        public void cancel() { 
        	RhoBluetoothManager.logi(TAG, "CANCEL mAcceptThread");
            try { 
            } catch (IOException e) {
                Log.e(TAG, "close() of server failed", e);
     * This thread runs while attempting to make an outgoing connection 
     * with a device. It runs straight through; the connection either 
     * succeeds or fails. 
    private class ConnectThread extends Thread {
        private final BluetoothSocket mmSocket;
Contextual code suggestions in your IDE  Get Codota for Java