生命周期更长的静态变量持有旧context会导致context无法释放造成泄漏,那能不能通过将静态变量置为null来解决?
业精于勤,荒于嬉;行成于思,毁于随。
This is OK if there is no other object referencing this context.
You can use weak references.
It can be released, but in such cases, application context will generally be considered
This is OK if there is no other object referencing this context.
You can use weak references.
It can be released, but in such cases, application context will generally be considered