I don't think you can do this with documented public APIs.  I wouldn't go 
reaching into that cache folder unless you have a very clear understanding 
of how that works in all versions of Android that you need to work with.

Doug

On Wednesday, June 13, 2012 11:55:53 AM UTC-7, VP wrote:
>
> 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. 
>
> If you use WebView's 
> saveWebArchive<http://developer.android.com/reference/android/webkit/WebView.html#saveWebArchive%28java.lang.String%29>,
>  
> 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? 
>
> If I use addJavaScriptInterface to get the html as described 
> here<http://lexandera.com/2009/01/extracting-html-from-a-webview/>, 
> 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. 
>
> Is there a way to save the entire webpage displayed in webview along with 
> resources in Android? Can somebody please help. I have to ship this feature 
> ASAP.
>
> Thanks 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to