I want to insert a constant string into an EditText by the press of a button. The string should be inserted at the current position in the EditText.
If I use
EditText.getSelectionStart() to get the current position of the cursor. Then you can use String.subString to get the text before and after the cursor and insert your text in the middle.
Haven't tried though.