Auto download all the images shown in the Webview
<p><strong>My Code:-</strong></p>

<pre><code>public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.webview);
    // defining the WebView
    WebView myWebView = (WebView) findViewById(R.id.web);
    // Websetting can be used to define several web related settings.
    WebSettings webSettings = myWebView.getSettings();
    // Enabling JAVASCRIPT
    webSettings.setJavaScriptEnabled(true);
    // providing navigational access
    myWebView.setWebViewClient(new WebViewClient());
    // loading the URL
    myWebView.loadUrl("http://abcd.com");
}
</code></pre>

<p>Its the simplest webview anyone will find out there, and i want to do some modification there but am unable to, so plz help me with it.</p>

<p>The site i am opening contains a lot of images, now  i want to know, when a website is accessed all the images and text it contains are download to show it on the UI and when we close the page all of it is lost,if i guessed it right.To download a image, one will have to specifically download it. Like we do in Opera Browser or any other one.</p>

<p><strong>So i want to download all the image my webview opens in the UI into an dir (path known /sdcard/pics) on my SDCard automatically.</strong> Is there a way?</p>
