Check and Avoid Memory Leaks in Application

前端 未结 2 1543
陌清茗
陌清茗 2021-02-02 00:34

So, I am done with a project, now the main issue I am facing is the Memory Leakage in the application (“leak” meaning you keep a reference to an activity, t

相关标签:
2条回答
  • 2021-02-02 00:50

    you can use tools like traceview or memory analyzer to check for memory leaks

    http://developer.android.com/tools/help/traceview.html

    http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html

    Here are some articles i found helpful

    http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html

    http://vahidmlj.blogspot.com/2012/10/android-memory-leak-on-screen-rotation.html

    0 讨论(0)
  • 2021-02-02 01:08

    I know this is an old post, but recently Square released a library called LeakCanary which is by far the most elegant solution for finding memory leaks.

    0 讨论(0)
提交回复
热议问题