Code example for BluetoothSocket

Methods: close

0
            Log.w(TAG, "Unable to close the output stream", e);
        } 
 
        if(mSocket != null) {
            try { 
                mSocket.close();
            } catch(IOException e) {
                Log.w(TAG, "Unable to close the socket", e);
            } 
        } 
        mSocket = null;
 
        disconnected(); 
        Log.d(TAG, "Disconnected from the socket");
    } 
 
    protected String getTag() {
        return TAG;
    } 
 
Connect your IDE to all the code out there  Get Codota for Java