I am new to Android and I am trying to figure out how do I focus on EditText and select all text in it.
Here is the scenario:
User enters user name in E
For selection of all the text of Edittext, you can use
editText.setSelection(0,editText.getText().toString().length());
and if you want to set cursor position you can use
editText.setSelection(position);