Select all text inside EditText when it gets focus
editText.setSelectAllOnFocus(true);
This works if you want to do it programatically.
You can try in your main.xml
file:
android:selectAllOnFocus="true"
Or, in Java, use
editText.setSelectAllOnFocus(true);