# Android focus EditText and move cursor to end
Published on 25 February 2016

Focus on a EditText and move the cursor end of the last character.

EditText editText = (EditText) findViewById(R.id.myEditText);
editText.requestFocus();
editText.setSelection(editText.getText().length());