title: Android Web-View shouldOverrideUrlLoading() Deprecated.(Alternative)
body: <p>I have Found a method to make mailto work in android webview but the method is deprecated.Can any one give me full code snippet of the new method.
  Here is the method I found on this site  </p>
  
  <p><strong>Java</strong> code is below:</p>
  
  <pre><code>@Override
     public boolean shouldOverrideUrlLoading(WebView view, String url) {
  
       if (url.startsWith("tel:")) {
           initiateCall(url);
           return true;
        }
         if (url.startsWith("mailto:")) {
           sendEmail(url.substring(7));
           return true;
        }
           return false;
    }
  </code></pre>
  
  <p>But it's not working when I have target platform as Android 7.1.1</p>