in LexSample/app/src/main/java/com/amazonaws/sample/lex/TextActivity.java [203:223]
private void textEntered() {
String text = userTextInput.getText().toString();
if (text == null || text.trim().equals("")) {
Log.d(TAG, "text null or empty");
return;
}
if (!inConversation) {
Log.d(TAG, " -- New conversation started");
startNewConversation();
addMessage(new TextMessage(text, "tx", getCurrentTimeStamp()));
lexInteractionClient.textInForTextOut(text, null);
inConversation = true;
} else {
Log.d(TAG, " -- Responding with text: " + text);
addMessage(new TextMessage(text, "tx", getCurrentTimeStamp()));
convContinuation.continueWithTextInForTextOut(text);
}
clearTextInput();
}