I found a lot of the same questions on several Android Dev forums: “How to put cursor at specific position in EditText?”. As I understood, new to platform developers can’t find proper method. At the first blush this is strange situation, because there is no such method as putCursor or setCursor, but if you will read JavaDocs more detailed you will find simple method setSelection(int position);. This method need to use for this situation.
I am going to show code snippet how to use it:
EditText editText = (EditText) findViewById(R.id.textId); editText.setText("EditText component"); editText.setSelection(3);
In this snippet I initialize EditText component, set some text and put cursor at 3-rd position.
As you see it is simple.