java - Get android device's all RAM memory programmatically and not only what is only allocated to user processes -



java - Get android device's all RAM memory programmatically and not only what is only allocated to user processes -

i have device know sure has ram memory of 512 mb

want able retrieve value (512 mb) programmatically.

so far have ran predominately these 2 ways on internet:

http://stackoverflow.com/a/16143065/1521264 gives me 386 mb

and http://stackoverflow.com/a/23508821/1521264 gives 386 mb

i assuming 386 mb memory available user processes memory or breakdown of other processes.

i bet have same device do: google nexus s (or might device similar configuration). phone has 512 mb of physical ram, 128 of taken gpu. that's why 384 mb available android, , that's amount scheme reports. wikipedia entry:

the nexus s has 512 mb of ram (mobile ddr) (128mb assigned gpu, leaving 384mb free os)

since that's memory that's available scheme (not user processes), value correct.

java android api memory memory-management

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -