In a nutshell I want that when I click on telegram in webview I don’t want the link to open or if I click on telegram I want to stay on the same page without the link opening
i tried to search but i didn’t find anything, at most i found something about how to disable all links on the webview and not some
4
Answers
You should use webview client to intercept the clicks.
Code :
In your webview set webViewClient
To check whether it’a valid email :
Now in
shouldOverrideUrlLoading
you can check the url and return whether to override url loading or not according to your need.