This error is often encountered in developing image video applications.
Android Memory consists of Dalvik and native 2 parts, Dalvik is the Java heap, created by the object is assigned here,
and native is the memory that is applied by C + +
Bitmap is assigned in one way (android3.0, the system is assigned by default by Dalvik). Of course, regardless of the way
2 parts plus no more than Android's memory limit on a single program.
1. The memory of a process can consist of 2 parts: Java uses memory, C uses memory, these two memory and must be less than 16M, otherwise there will be a large
The home is familiar with Oom, this is the first kind of oom situation.
2. What's even more strange is this: once the memory is allocated to Java, this memory can only be used for Java after it is released, which is estimated with the Java virtual
in the machine to divide the memory into several pieces of the reason for caching, anyway, C don't want to use this piece of memory, so if Java suddenly occupied a chunk inside
saved, even if it was released soon:
c memory that can be used = 16m-java The maximum memory occupied at a moment.
The generation of bitmap is allocated through malloc, which occupies the memory of C, mbitmap the original
because Java uses too much memory, there is too little memory left for C to use.
Wang Liping--android out of memory (OOM) cause