RentUrApp
RentUrApp

Reputation: 1

Is it possible to clear the android application cache at API 21

Is it possible to write a function to clear the app cache on my app. I know that I can go to app settings and clear it that way but I want to be able to do that within my own app in code when its finished processing.

Any suggestions would be greatly appreciated.

I have tried Clear Cache in Android Application programmatically but the app still shows that the cache is not cleared.

I have also looked at How to delete app cache for all apps in Android M? but have not been able to write something to do this.

I have added <permission android:name="android.permission.CLEAR_APP_CACHE"/>to the manifest but this does not seem to make any difference.

Upvotes: 0

Views: 239

Answers (0)

Related Questions