Linked Questions

10 votes
3 answers
17k views

How to delete other applications cache from our android app?

I'm trying to develop an android app that could erase others application cache data, I tried to browse through all blogs but none of them worked for me, I can able to clear my application's cache by ...
Chethan Shetty's user avatar
7 votes
4 answers
24k views

How can I clear the Android app cache?

I am writing a app which can programatically clear application cache of all the third party apps installed on the device. Following is the code snippet for Android 2.2 public static void trimCache(...
Srao's user avatar
  • 241
13 votes
2 answers
8k views

How to delete app cache for all apps in Android M?

Is there an option to delete the cache of all Apps or certain Apps in Android M ? Seems like most ways don't work anymore in Android M. As a reference I used this Code out of this discussion : ...
Chris Sherlock's user avatar
5 votes
2 answers
9k views

Clearing app cache programmatically?

I want to write a utility where the user can select a set of installed apps and clear their data caches i.e. like the way you can do manually using the built-in Settings->Applictions settings screen ...
robosheep's user avatar
2 votes
3 answers
3k views

Clear another applications cache

I´ve been reading around here about cleaning another applications cahce-memory, and I´ve also tried coding my own app. The result I´ve got, is that with Androids current securitylayer, it´s not ...
MAA's user avatar
  • 93
1 vote
1 answer
4k views

Clear cache in android application

I don't think it's a duplicate. Well, I explain what I need.. I've got a list of all application installed in my device.. By a click I need to show a dialog that says "Do you want clear cache?" with "...
David_D's user avatar
  • 1,402
0 votes
1 answer
2k views

Reflecting methods to clear Android app cache

I am trying to clear the app cache of other android apps besides my own. To do this, I am using reflection on the PackageManager class. However, whenever I initialize the method before I invoke it, it ...
Timothy Miller's user avatar
0 votes
1 answer
2k views

Clear cache of other applications in android not duplicate

Hi I'm trying to clean other applications cache from my application, I'm able to clear other apps cache now till 4.1.2 version of android using the following code import java.lang.reflect....
Chethan Shetty's user avatar
0 votes
2 answers
2k views

Clear Cache of All Apps in Marshmallow?

I try to solve using below code: [Reference: Android: Clear Cache of All Apps? PackageManager pm = getPackageManager(); // Get all methods on the PackageManager Method[] methods = pm....
user avatar
1 vote
0 answers
999 views

How to clear cache of other applications

I'm trying to clear cache of all the applications installed on my phone. Here is my code: public void clearApplicationData() { File cache = getCacheDir(); File parent1 = new File(cache....
Audumbar's user avatar
  • 404
0 votes
1 answer
630 views

How to programatically clear application cache in Android 4.2.2 and above

In Android 4.0 I use this solution to clear my application cache and it works perfectly: public void clearApplicationData() { File cache = getCacheDir(); File appDir = new File(cache....
user2999943's user avatar
  • 2,459
0 votes
1 answer
797 views

how to clear cache of all installed applications in android

I have to clear cache of all installed applications from my application.I have tried to clear the cache on click of button.But on click of button it throws nullpointerexception.In android market so ...
Sairam's user avatar
  • 31
0 votes
1 answer
678 views

Clear cache of apps in android programitiically Not for images

In an android application, I want to make an app that has a button named CleanCache and inside the code it list down all applications cache and clear it with a toast message that cache is cleared. I ...
Andrew's user avatar
  • 1
0 votes
1 answer
238 views

Clear one app cache programmatically with android studio java

I am writing an automatic downloader app and I need to clear cache of the app I am downloading from, every night. Is there a way to do this? I searched the internet but the closest thing I found was ...
Mr17's user avatar
  • 1
0 votes
0 answers
155 views

Show total cache size in android

I am developing an app, in which i need to display the total caches of all apps combined, in my TextView. how do i do that? i have found this snippet from an answer PackageManager packageManager = ...
MaggotSauceYumYum's user avatar

15 30 50 per page