Delete cached files - WebView Android 4.4+

Viewed 3063

I managed to delete cached files created by WebView using:

Clearing android cache, Clear Application cache on exit in android

However for Android 4.4 that solution doesn't work properly, since the files are cached in:

/data/data/com.app.package/app_webview/

instead of:

/data/data/com.app.package/cache/

The above path can be obtained by the official command getCacheDir().

An approach could be hard-coding the path obtained through Get Application Directory

However, is there any [official]/proper solution to address this?

2 Answers
Related