使用handler的过程,可能带来的内存泄露

转发:

http://my.eoe.cn/yaming/archive/5133.html

解决方式:

声明 handler 为 static 内部类,并且 对context 采取 弱引用 WeakReference 方式

猜你喜欢

转载自hold-on.iteye.com/blog/1986091