Check and Avoid Memory Leaks in Application

前端 未结 2 1544
陌清茗
陌清茗 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

提交回复
热议问题