I'm getting processname and pid using activity manager and getprocessMemoryInfo(),but how to get exact memory used by the applications,as I'm getting different memories like getTotalPrivateDirty(),getTotalPss(),getTotalSharedDirty()
All the above are not matching with any of the memory that is shown in application manager.
Anyone have any idea?