Hi I've got an app with a code size of approximately 1/2mb. The app includes a webview for showing several pages. My cache therefore ends up at 2,5mb. Not much but enough. How can I clear my cache onDestroy?
Thx!
Hi I've got an app with a code size of approximately 1/2mb. The app includes a webview for showing several pages. My cache therefore ends up at 2,5mb. Not much but enough. How can I clear my cache onDestroy?
Thx!
put this code in onDestroy() for clear app cache
As given in the link provided above, you can get the cache directory and then delete it along with its children to clear the cache as follows: