How to intercept link to link in TextView?

I have a TextView and it contains HTML with tags. I need to intercept user clicks on these links, accept the value of the "href" parameter, check it and open my activity if it is a local link or open a browser if it links to another site.

I tried to find which , but I can’t figure out how to use it in my case.

Please, help.

+6
source share
1 answer

Here is the method: fooobar.com/questions/46471 / ...

All he does is pass a link to your own activity (since links are usually passed to other actions), and then you retrieve the URL.

+3
source

All Articles