title: WebView download opens browser window for a short moment before returning to WebView
body: <p>My Problem is that when I hit the pdf link in the webview, the browser opens for a short moment (I guess to download the linked file), the pdf file starts to download and the app returns back to the webview. Is there a way to stop the browser window opening to start the download?</p>
  
  <p>I have used WebViewClient to shouldOverrideUrlLoading so that clicked urls are kept in the webview:</p>
  
  <pre><code>private class LinkWebViewClient extends WebViewClient {
      @Override
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
          view.loadUrl(url);
          return true;
      }
  }
  </code></pre>
  
  <p>And I have a download listener so I can download files  (for my needs these are pdf's):</p>
  
  <pre><code>webView.setDownloadListener(new DownloadListener() {
          public void onDownloadStart(String url, String userAgent,
                  String contentDisposition, String mimetype,
                  long contentLength) {
              Intent intent = new Intent(Intent.ACTION_VIEW);
              intent.setData(Uri.parse(url));
              startActivity(intent);
  
          }
      });
  </code></pre>