I have a WebView
which may contain data that appears to be getting \"auto linked\". Something that looks like an email address is becoming clickable, even though i
I know this is a bit late, but for future reference, this might be a solution that will work regardless if the links are auto created or defined in the -tag.
myWebView.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// return true; // will disable all links
// disable phone and email links
if(url.startsWith("mailto") || url.startsWith("tel")) {
return true;
}
// leave the decision to the webview
return false;
}
});