android - Clearing all cached items created by a WebView? -


i've got webview in app. when user logs out of app, i'd delete cached resources webview may have created. looking @ emulator, see following files:

/data   /data     /com.example.myapp       /cache         /webviewcache           bunch of files here..       /databases         webview.db         webviewcache.db 

is there system call can use clear elements in /cache , /databases, or should manually? i'm worried doing manually because don't know new files webview may leave behind in future versions of android won't sure i'm clearing user.

try this

mwebview.clearcache(true); mcontext.deletedatabase("webview.db"); mcontext.deletedatabase("webviewcache.db"); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -