I have a listview ,each item is a textView with property autoLink=”web|email”.Link will work properly,but I want to start another activity when text other than web|email is clicked,that was not happening.So I used setOnClickListner for textView,that also worked smoothly.My problem is when I click the email or web link both actions will occur -browser and other activity will open.How to prevent this?
I have a listview ,each item is a textView with property autoLink=web|email.Link will work
Share
I got the solutions.
I used
getSelectionStart()andgetSelectionEnd()functions of the Textview class,