This is way more complicated than you think it is, and actually something
that can be well answered.

See here for more:

http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813
<http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813>
On Sun, Dec 5, 2010 at 8:32 AM, adithya <[email protected]> wrote:

> Hi,
>
> I have been trying to figure out what actually is the correct way to
> figure out the total system memory the phone has and uses (in my case
> an emulator) programatically but haven't got a clear idea as of yet.
>
> I went through the ActivityManager.MemoryInfo and Debug.MemoryInfo
> classes. I also went through the Runtime class to get an idea
> regarding the memory usage.
>
> Can anyone guide e as to which classes will give me the information i
> seek. I am looking for memory usage and memory available at system
> level.
>
> Lets say if RAM available is 56 MB and memory being used is 24 MB then
> is there a way to find it out programatically?
>
> Also,
> If i want to find the same at application level is there a way out ?
>
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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