title: Open phone dialer using a Android Xamarin WebView html link
body: <p>I'm trying to use the <strong>ShouldOverrideUrlLoading()</strong> method but the app crashes when I call it. </p>
  
  <p>Below is my code:</p>
  
  <pre><code>private class HybridWebViewClient : WebViewClient
          {
  
  
              public override bool ShouldOverrideUrlLoading(WebView webView, string url)
              {
  
                  var tel = "tel:";
                  if (url.StartsWith(tel))
                  {
  
                      var uri = Android.Net.Uri.Parse(url);
                      var intent = new Intent(Intent.ActionDial, uri);
                      var act = new Activity();
                      act.StartActivity(intent);
                  }
  
              }
          }
  </code></pre>
  
  <p>Thanks in Advance!</p>