Downloading pdf from web browser and webview
<p>I am accessing a website which has .pdf documents. If I open that document thro' web browser, it starts downloading it. If I open it thro' 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>

<p>Thanks.</p>
