Open onecoders opened 10 years ago
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.startsWith("tel:")) {
Intent intent = new Intent(Intent.ACTION_DIAL,
Uri.parse(url));
startActivity(intent);
}else if(url.startsWith("http:") || url.startsWith("https:")) {
view.loadUrl(url);
}
return true;
}
Issue “Android WebView “tel:” links show web page not found” at: http://stackoverflow.com/questions/4338305/android-webview-tel-links-show-web-page-not-found
https://github.com/gleitz/wikimaze-android