Well, there's always java.lang.Runtime.freeMemory and totalMemory.

On Dec 5, 10:08 pm, adithya <[email protected]> wrote:
> Hi,
>
> I have gone through the ActivityManager.MemoryInfo and
> Debug.MemoryInfo classes and the API's provided by them to get an
> insight of the available memory present and the memory consumption
> being done. I have been through the methods provided by Runtime class
> to get memory information.
>
> I still haven't got a clear idea as to how to retrieve the system
> level memory information.
>
> For e.g. lets say the emulator is allocated 56MB of RAM and 24MB is
> being used (which can be a combination of cached, actual memory which
> cannot be GCed and other memory like dirty which can be freed whenever
> required.). All at the system level and the application level.
>
> I would be really glad if someone guided me  because i read that its
> not that accurate to get memory usage in android ! I am using android
> sdk 2.2.
>
> Thanks,
> Adithya.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to