how to set text in edittext android code example
Example 1: clear edittext android
editText.getText().clear();
Example 2: java android edit text set value
EditText bookInput = (EditText)findViewById(R.id.book);
bookInput.setText("The Shining");
editText.getText().clear();
EditText bookInput = (EditText)findViewById(R.id.book);
bookInput.setText("The Shining");