is there any way, how to determine actual allocated memory in Android application (in code)?
Thanks
Waypoint
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you talking about Android Application Memory then,
ActivityManager.getMemoryInfo()is our highest-level API for looking at overall memory usage.Going lower-level, you can use the Debug API to get raw kernel-level information about memory usage.
Note starting with 2.0 there is also an API,
ActivityManager.getProcessMemoryInfo, to get this information about another process.Also you can parse
/proc/meminfocommand. and get the response for memory information.EDIT:
For more information look at these two SO questions: