I have a webview that I am creating. It seems to automatically be linkifying numbers into tel: urls. I didn\'t see a way to remove this ability (at least nothing similar t
There is a way to do that - rather ugly, two layered, but still a workaround.
You should
explicitly tell the loaded page not to apply styles and haptic feedback.
mWebView.setWebViewClient( new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, final String url) {
Uri uri = Uri.parse(url);
//TODO analyse the uri here
//and exclude phone and email from triggering any action
return false;
}
public void onReceivedError(WebView view, int errorCode,
String description, String failingUrl) {}
public void onPageFinished (WebView view, String url) {...}
public void onPageStarted(WebView view, String url, Bitmap favicon) {...}
public void onLoadResource(WebView view, String url) {...}
});
In the html specify the following meta tags inside the tag:
Hope this helps.