When I try to show more 2+ images in one surface view, the program always crash. ≥ _ ≤
After lots of searching, I found it’s might be the “Memory Leak or Out of Memory” problem.
There are some method to tracing what’s cause this problem, such as android bitmap 的回收處理跟記憶體分析.
The buffer (RAM) of mobile device is limited by hardware+software.
The code should computing under the limited boundary condition, or it will crash.
When “Memory Leak” or “Out of Memory” are happened, it should decreasing the “Memory Leak”, control the memory loading, or increasing the buffer.
I used one method to increasing the buffer of mobile device. Thanks for the provider.
Note: the large heap is different by mobile models, and it might works after android 3.0.
Go to AndroidManifest -> application
<application android:largeHeap="true"> </activity>