app/libs/btcar/BluetoothChatService.java
public void write(byte[] buffer) {
            try {
                mmOutStream.write(buffer);

                // Share the sent message back to the UI Activity
                mHandler.obtainMessage(BTcar.MESSAGE_WRITE, -1, -1, buffer)
                        .sendToTarget();
            } catch (IOException e) {
                Log.e(TAG, "Exception during write", e);
            }
        }
/**
         * Write to the connected OutStream.
         * @param buffer  The bytes to write
         */
Write to the connected OutStream.
@param buffer  The bytes to write
Write to the connected OutStream . @param buffer The bytes to write
public void write(byte[] buffer) {
            try {
                mmOutStream.write(buffer);
                mHandler.obtainMessage(BTcar.MESSAGE_WRITE, -1, -1, buffer)
                        .sendToTarget();
            } catch (IOException e) {
                Log.e(TAG, "Exception during write", e);
            }
        }
public void write ( byte [ ] buffer ) { try { mmOutStream . write ( buffer ) ; mHandler . obtainMessage ( BTcar . MESSAGE_WRITE , - 1 , - 1 , buffer ) . sendToTarget ( ) ; } catch ( IOException e ) { Log . e ( TAG , "Exception during write" , e ) ; } }
Write to the connected OutStream.
Write to the connected OutStream .
// Share the sent message back to the UI Activity