0

I want to know the total amount of cache being used by all apps in adroid, any suggestions?

Prajwel
  • 97
  • 7
  • This link will help you: [How to discover memory usage of my application in Android][1] [1]: http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android – Diego Palomar Sep 10 '13 at 08:29

1 Answers1

1

Hope this help you

ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
        MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
        activityManager.getMemoryInfo(memoryInfo);
        System.out.println("Available Memory : " + memoryInfo.availMem);
        System.out.println("Thresold Memory : " + memoryInfo.threshold);
        System.out.println("Total Memory : " + memoryInfo.totalMem);
Biraj Zalavadia
  • 28,348
  • 10
  • 61
  • 77