I have an EditText where I wanted to make link (email, web, phone) clickable. I was able to do it by using
mBodyText.setMovementMethod(LinkMovementMethod.getInstance());
it works perfectly and all links open when clicking on them. Here comes my requirement. I want to open contextual action bar (like default copy/ paste one) when user click on a link in edit text.
I know how to start a contextual action bar. But I don't know how can I catch the event when user clicks the link and to identify what kind of link it is (phone or web etc...) to show the proper menus in CAB.
After searching for hours, I come here to get the suggestion.