I am having an issue hitting the memory limit of my application. My question is if I break my application into a few processes will this allow each process to get a 24mb limit or will all processes add up to hit the 24mb limit?
Share
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 Android follows Oracle’s heap space guidelines for Java, it says: “Maximum heap size depends on maximum address space per process.” Tuning The Java Heap
If you are able to break your application into a few process, you might be able to get more than 24MB.. The only thing I can see not letting you do this would be an Android security feature to prevent malicious application from forkbombing the phone..
Here is an article by Matt Clark about good programming habits to be efficient with your 24MB of heap space.. Developing Apps Within Android’s 16MB Memory Limit
Hope this helps, good luck!