I simply want to get the total Ram available on the device. I know how to get the available in MemoryInfo, but I really want to know what percentage of Ram is available, and so I need to know the total.
I tried using the Runtime methods, but this gives a bizarre low number. I tried looping through tasks to look at memory, but I am not experienced enough to know what the differences between privateDirty, privateShared, and pss memory are - and have yet to find some combination of adding them up with the available memory that seems to be anything close to the total. It seems there should be a simple way - Help? Do I have to go an ndk route just to get at /proc/meminfo or is that even possible?
An Android newbie