search

Home  >  Q&A  >  body text

Android studio的analyzer tasks能识别什么类型的内存泄漏呢

Android studio的analyzer tasks能识别什么类型的内存泄漏呢
目前看到的是有Activity还有String的

PHPzPHPz2771 days ago583

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-18 09:16:55

    Everyone is OK, or what types of memory leaks have you found that cannot be detected?

    reply
    0
  • ringa_lee

    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.

    reply
    0
  • Cancelreply