title: Android webview, start ACTION_VIEW activity when the url could not be handled by webview
body: <p>Actually I know how to start the market app by URL filtering with my custom webview client, but I want to make it more generic, that is to check each URL, not only the market url, but also some other url protocol that the webview would not know how to deal with it, and start the ACTION_VIEW intent to handle that. </p>
  
  <p>I thought maybe I can check if the url is not started with "http" "https" "ftp" "mailto", if the url is in these protocol, the webview can handle it by itself, for others, I will start a new Intent to try to handle that.</p>
  
  <p>What is your idea? am I correct? any missing protocol that webview could handle?</p>
  
  <pre><code>    webView.setWebViewClient(new WebViewClient() {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              if (url != null &amp;&amp; url.contains("://") &amp;&amp; url.toLowerCase().startsWith("market:")) {
                  try {
                      view.getContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
                      return true;
                  } catch (Exception ex) {
                  }
              }
              view.loadUrl(url);
              return true;
          }
      });
  </code></pre>