public static void moveCursorToEnd(final EditText input) {
        input.setSelection(input.getText().length(), input.getText().length());
    }
Move the cursor to the end of the input field.
main/src/main/java/cgeo/geocaching/ui/dialog/Dialogs.java