SOURCE Blog: http://www.devahead.com/blog/2012/01/saving-the-android-webview-cache-on-the-sd-card/
The main idea is to indirectly change the results obtained by WebView acquiring the cache directory by the override Getcachedir () method at the activity level;
Getcachedir () and Getfilesdir () are often used when saving the cache (file), which returns the default result as/data/data/package name/cache (files).
However, this can be very internal Storage, and automatically clears the contents of the cache directory when internal Storage tense.
At this point, consider to save the file in external strorage, become a feasible scheme;
Two types of positions:
1./sdcard/android/data/Package name/cache (files)
Similar to/data/data/package name/cache (files), just move to external Storage, clear the cache in application management, will kill the corresponding file directory and content, uninstall the application will be automatically cleared;
2./sdcard/the Custom Directory
Unless manually removed in file management, it will persist;
Choose according to different needs;
Android WebView Save Cache to external Storage