What are you intending to do with this? Free memory is a very nebulous concept. There is a 99% chance that anyone seeing a number associated with free memory will greatly misinterpret what that means.
(Note that for Running Services the amount of "free" memory takes information from /proc/meminfo but actually includes other memory making the number given to the user fairly meaningful specifically for what they are looking at in that UI.) On Fri, Aug 6, 2010 at 10:37 PM, Jonathan <[email protected]> wrote: > Hi - I am simply looking for a way to get the total Ram available to > the device. I have been able to get available Ram from a MemoryInfo > object with no problems, but what I really want to know is what > percentage is available - and so need the total. The Runtime methods > give absurdly low values. Is there a simple way to do this? Do I > have to go into the ndk to get at /proc/meminfo? > > Thank you, > > Jonathan > > -- > 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

