how to clear the contents of a edittext in android code example Example: clear edittext android editText.getText().clear();