app/src/main/java/edu/cmu/pocketsphinx/demo/TCPClient.java
public void sendMessage(final String message) {
        Runnable runnable = () -> {
            if (mBufferOut != null) {
                Log.d(TAG, "Sending: " + message);
                mBufferOut.println(message);
                mBufferOut.flush();
            }
        };
        Thread thread = new Thread(runnable);
        thread.start();
    }
/**
     * Sends the message entered by client to the server
     *
     * @param message text entered by client
     */
Sends the message entered by client to the server
@param message text entered by client
Sends the message entered by client to the server @param message text entered by client
public void sendMessage(final String message) {
        Runnable runnable = () -> {
            if (mBufferOut != null) {
                Log.d(TAG, "Sending: " + message);
                mBufferOut.println(message);
                mBufferOut.flush();
            }
        };
        Thread thread = new Thread(runnable);
        thread.start();
    }
public void sendMessage ( final String message ) { Runnable runnable = ( ) -> { if ( mBufferOut != null ) { Log . d ( TAG , "Sending: " + message ) ; mBufferOut . println ( message ) ; mBufferOut . flush ( ) ; } } ; Thread thread = new Thread ( runnable ) ; thread . start ( ) ; }
Sends the message entered by client to the server
 @param message text entered by client
Sends the message entered by client to the server @param message text entered by client