I want get text like phone number inside a textView by parcing, and i want use this getSelectionStart(), but it dosen’t work?? can someone give me an example please.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I made a bad first answer because I mixed getselection with the new text api of 2.3.
You will find some answer in those thread :
Android – get selection of text from EditText
How to use getSelectionStart and getSelectionEnd of EditText when user touches EditText?