Will the WebView cache persist between application launches?

I have a webview. I'm not quite sure how caching works. Ideally, I would like to one day download a web page from the network (including images), and then only load it from the local cache from it. I'm not sure if we have such control over webview. Would it be easy at some point to clear the cache? How can i say I have to be sure that it really saves the page in cache between different launches of my application.

http://developer.android.com/reference/android/webkit/WebSettings.html

cache modes do not seem to indicate whether the cache is maintained between application launches or not?

thank

+5
source share
1 answer

cache apk

adb shell
#cd /data/data/yourpackage
#ls
<<you should see a cache directory>>
+1

All Articles