I am making an android application to get list of all apllication, their memory details and RAM used for application. I used this link
Get installed Applications with Name, Package Name, Version and Icon
Now I want to get memory details of android applications. I try this code
MemoryInfo mi = new MemoryInfo();
ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
activityManager.getMemoryInfo(mi);
long availableMegs = mi.availMem / 1048576L;
I am getting the info like app logo,app name,version,update time, package name, feautures, permissions.
But I want to get memory usage,size etc(hardware info) of each app.
I searched a lot and get the answer public int getMemoryClass ()
from ActivityManager but it giving 64mb for all appplication