Code example for BluetoothServerSocket

Methods: close

0
    } 
 
    private void closeBluetoothServerSocket() { 
    	log.debug(CLASS + getId() + ": mmBluetoothServerSocket closing...");
    	try { 
            mmBluetoothServerSocket.close();
            log.debug(CLASS + getId() + ": mmBluetoothServerSocket closing - SUCCEEDED");
        } catch (IOException e) {
        	log.debug(CLASS + getId() + ": mmBluetoothServerSocket closing - FAILED");
        } 
    } 
     
    /** Will cancel the listening socket, and cause the thread to finish */ 
    public void cancel() { 
        closeBluetoothServerSocket(); 
    } 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java