edit text java android code example
Example 1: set text in edittext android
EditText editText = (EditText)findViewById(R.id.edit_text);
editText.setText("This sets the text.", TextView.BufferType.EDITABLE);
Example 2: java android edit text set value
EditText bookInput = (EditText)findViewById(R.id.book);
bookInput.setText("The Shining");