ns am obtaining "net::ERR_UNKNOWN_URL_SCHEME" while calling a call number option from an HTML web page in Android. Perform I need to add any permission(s) in the manifest to gain this working? i haven"t added anything in the manifest therefore far. Here"s the HTML Code:

Call united state free!



The complying with should work and also not require any permissions in the manifest (basically override shouldOverrideUrlLoading and handle links separately from tel, mailto, etc.):

mWebView = (WebView) findViewById(R.id.web_view); WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabled(true); mWebView.setWebViewClient(new WebViewClient()
Override windy boolean shouldOverrideUrlLoading(WebView view, string url) if( url.startsWith("http:") ); mWebView.loadUrl(url);Also, keep in mind that in the above snippet ns am enabling JavaScript, which you will likewise most most likely want, but if because that some reason you don"t, just remove those 2 lines.

You are watching: Net::err_unknown_url_scheme


I had actually this issue arising with mailto: and also tel: links inside an iframe (in Chrome, no a webview). Clicking the web links would display the grey "page not found" page and inspecting the web page showed it had actually a ERR_UNKNOWN_URL_SCHEME error.

Adding target="_blank", as suggested by this conversation of the worry fixed the problem for me.

See more: Jack In The Box Seattle, Wa, All Day Breakfast, Burgers & Chicken Near You


Try this way,hope this will assist you to resolve your problem.



public class MyActivity extends task private WebView webView;
Override defended void onCreate(Bundle savedInstanceState) super.onCreate(savedInstanceState); setContentView(R.layout.main); webView = (WebView) findViewById(R.id.webView); webView.loadData("Call united state free!", "text/html", "utf-8"); Please include this permission in AndroidManifest.xml


Highly active question. Knife 10 reputation (not counting the association bonus) in order come answer this question. The reputation requirement helps protect this question from spam and also non-answer activity.

Not the prize you're looking for? Browse various other questions tagged android html error-handling android-manifest or asking your very own question.

webview application done in C# because that Android utilizing Xamarin for visual studio cannot open up whatsapp: url reflects net::ERR_UNKNOWN_URL_SCHEME error
site design / logo design © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.11.5.40661

your privacy

By click “Accept all cookies”, friend agree stack Exchange deserve to store cookies on your an equipment and disclose information in accordance v our Cookie Policy.