title: How do I save a complete webpage displayed in Android's WebView?
body: <p>I am developing an Android application in which I have a WebView. I want to save the entire webpage loaded in this webview (Html + all resources + images + icons etc) into a folder and zip it and upload it to a server. </p>
  
  <p>If you use WebView's <a href="http://developer.android.com/reference/android/webkit/WebView.html#saveWebArchive%28java.lang.String%29">saveWebArchive</a>, then it is saved in archive format. How do I get the Html and images back from this archive? Is there any documentation for the format of this archive? </p>
  
  <p>If I use addJavaScriptInterface to get the html as described <a href="http://lexandera.com/2009/01/extracting-html-from-a-webview/">here</a>, I still have to copy the images and other resources from the webview cache dir (/data/data/your app package/cache/webviewCache/). However I did not find webview cache dir (/data/data/your app package/cache/webviewCache/) in Icecream Sandwich. </p>
  
  <p>Is there a way to save the entire webpage displayed in webview along with resources in Android?</p>
  
  <p>Thanks </p>