How to intercept click on link in TextView?
android, hyperlink, textview
Solution
There's this method: https://stackoverflow.com/a/3452944/1799219
All it's really doing is passing the link to your own activity (as links are normally passed to other activities) and then you extract the URL.
Problem
I have TextView and it contain HTML with tags. I need to intercept user's clicks on this links, take value of "href" parameter, check it and open my activity if it local link or open browser if it link to another site. I've try to search and find that, but I can't understand how to use it in my case. Please, help.