Code example for EditText

Methods: getTextsetSelectiongetSelectionEnd