Hi there!
I have researched and also posted this question on stackoverflow, but got 
not a single response :-(

I created a rudimentary browser with help of a WebView.

When I visit a website (containing some text and a few images), the cache 
directory in /data/data/com.mayexample/cache/webViewCacheChromium gets 
filled with a few files called index, data_0, data_1, data_2, f_00001, 
f_00002 etc.

I was wondering, what's the format of these files, what do they contain? 

I thought about "so, a few of these files surely have to be the website's 
images then" and tried opening them in a file manager (open as image). But 
whatever file I pick, the process says "Failed loading!". Even if I rename 
some of them to .jpg, still I can't open anything. I have read on the 
internet that this worked for some people though (look at Android WebView - 
Load Images from 
cache<http://stackoverflow.com/questions/11274225/android-webview-load-images-from-cache>,
 
it's exactly what I want to do), but I can't do anything with the cache's 
files.

Do you know a way to open webview cache files? Doesn't one file represent a 
corresponding cached image for example?

*What I really want to achieve* (once I understand the structure of the 
cache files) is to programmatically fetch images of the webview from it's 
cache, like the author of the link posted above (unfortunately this 
posting's answers don't help much).

Any help/comments on accessing the webview cache appreciated!

-- 
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