android内存泄漏问题
迷茫
迷茫 2017-04-17 17:24:59
0
3
473

生命周期更长的静态变量持有旧context会导致context无法释放造成泄漏,那能不能通过将静态变量置为null来解决?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
左手右手慢动作

This is OK if there is no other object referencing this context.

PHPzhong

You can use weak references.

巴扎黑

It can be released, but in such cases, application context will generally be considered

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template