I want to know the total amount of cache being used by all apps in adroid, any suggestions?
Asked
Active
Viewed 420 times
1 Answers
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
- 27,812
- 10
- 59
- 76