title: Android WebView onLoadResource() with only images
body: <p>Webviews <code>onLoadResource()</code> method is called when there's a resource to be downloaded. I've a situation where I need to get all the image resources in a webview. The content in the webview is dynamic, I can enter google.com/anyurl in a webview and the <code>onLoadResource()</code> is called where I am getting <code>CSS Sprite images, Javascript Files</code> and other irrelevent files. </p>
  
  <ul>
  <li><p>Is there a way to check if the url from <code>onLoadResource()</code> is called from <code>DOM Body</code> and is there a way to eliminate downloading js files and css sprite images ?</p></li>
  <li><p>Is there a way to access the webview cached resources so I could just access the downloaded images instead of redownloading it ?</p></li>
  </ul>