I have a edittext in which some text are selected . I want to get only selected text from edittext on click of button .
Please suggest me usable link or sample code.
getSelectionStart() getSelectionEnd()
see this link