使用handler的过程,可能带来的内存泄露
转发:
http://my.eoe.cn/yaming/archive/5133.html
解决方式:
声明 handler 为 static 内部类,并且 对context 采取 弱引用 WeakReference 方式
转发:
http://my.eoe.cn/yaming/archive/5133.html
解决方式:
声明 handler 为 static 内部类,并且 对context 采取 弱引用 WeakReference 方式
暂无评论。
评论功能维护中,当前仅展示历史评论。