Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically clear users cache on app update in android

Tags:

android

Is there any method in the android API (ideally for 2.3.6 and onwards) that clears the users cache if they download a new version of an app? Looking around there doesn't seem to be any mention of one - or am I off the ball completely and the cache is emptied when a new version is installed?

like image 353
neilK Avatar asked Jan 29 '13 15:01

neilK


1 Answers

If nothing else, store a file with your android:versionCode in the cache, and check it on startup, wiping out your own cache if needed - @CommonsWare

like image 88
neilK Avatar answered Nov 15 '22 20:11

neilK