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
I figured it out. Here is what I did.
I have a button user clicks when he enters user name (the positive button on DialogFragment). On button click event, I do this:
editUserName.setSelectAllOnFocus(true); editUserName.selectAll();
This will focus and select all text in the EditText.