title: Downloading pdf through web browser and webview
body: <p>I am accessing a website which has .pdf documents. If I open that document through a web browser, it starts downloading it. If I open it through webview, nothing happens. What setting should I need to apply to webview to make it start downloading?</p>
  
  <p>I already have this.</p>
  
  <pre><code>wvA.setDownloadListener(new DownloadListener()
  {
      public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimeType,
                      long size)
      {
          Intent viewIntent = new Intent(Intent.ACTION_VIEW);
          viewIntent.setDataAndType(Uri.parse(url), mimeType);
  
          try
          {
              startActivity(viewIntent);
          }
          catch (ActivityNotFoundException ex)
          {
          }
      }
  });
  </code></pre>