First use MAT to obtain the current memory situation of the mobile phone, and then use monkey testing. After observing that the memory of the process continues to increase, use MAT to obtain the new memory situation. Compare and analyze the two files to see what objects are held and cause memory leaks.
After AS1.5, there are tools to detect memory leaks, or you can directly use square's leakcanary, which may be more intuitive. After the memory leak is dealt with, it should be much better
OOM is caused by memory leaks in the java layer
Use leakcanary detection
First use MAT to obtain the current memory situation of the mobile phone, and then use monkey testing. After observing that the memory of the process continues to increase, use MAT to obtain the new memory situation.
Compare and analyze the two files to see what objects are held and cause memory leaks.
The first doubt is Bitmap or large array
After AS1.5, there are tools to detect memory leaks, or you can directly use square's leakcanary, which may be more intuitive. After the memory leak is dealt with, it should be much better