I am implementing a web view in my application. now when a user clicks on a phone number it shows net::ERR_UNKNOWN_URL_SCHEME. But if i use chrome. it brings the dialer application with that phonenumber.
I need the exact same thing in my application. When a phone number is clicked within webview then the dialer needs to be opened with that phone number.
Here is my shouldOverrideUrlLoading
Method for the webview. I can see there is answer here. But i am pretty new to android and java and i couldn't make this thing work till now.
public boolean shouldOverrideUrlLoading(WebView view, String url){
progressBar.setVisibility(view.VISIBLE);
view.loadUrl(url);
return true;
}