Android studio的analyzer tasks能识别什么类型的内存泄漏呢
目前看到的是有Activity还有String的
巴扎黑2017-04-18 09:16:55
Everyone is OK, or what types of memory leaks have you found that cannot be detected?
ringa_lee2017-04-18 09:16:55
There should be only one type, Activity leakage, that is, a static variable refers to the Activity object. If it has not been released when the Activity is destroyed, it is judged as a leak.
Others, for example, you can write a Bitmap management to keep all Bitmaps consistent. reference, and then does nothing and does not release it. This behavior can be understood as the design of your code, and it is impossible to judge whether it is a leak.