Code example for BluetoothSocket

Methods: close

0
    } 
     
    private void closeBluetoothSocket(BluetoothSocket bluetoothSocket) {
    	log.debug(CLASS + getId() + ": bluetoothSocket closing...");
    	try { 
    		bluetoothSocket.close();
    		log.debug(CLASS + getId() + ": bluetoothSocket closing - SUCCEEDED");
        } catch (IOException e) {
        	log.debug(CLASS + getId() + ": bluetoothSocket closing - FAILED");
        } 
    } 
 
    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");
        } 
Connect your IDE to all the code out there  Get Codota for Java