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