问题还原
Activity com.shangche.tachograph.activity.MainActivity
has leaked IntentReceiver com.shangche.tachograph.utils.
aputil.WiFiConnectionReciever@1e68ecbd that was originally
registered here. Are you missing a call to
unregisterReceiver()?
原因是我们注册了广播而没有取消注册,导致内存泄露,解决办法是在onDestroy取消注册。
unregisterReceiver(rcv);
推荐使用内存泄露检测工具:
http://www.jianshu.com/p/c250133ae464