問題還原
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()?

Paste_Image.png
原因是我們注冊了廣播而沒有取消注冊,導致內存泄露,解決辦法是在onDestroy取消注冊。
unregisterReceiver(rcv);
推薦使用內存泄露檢測工具:http://blog.csdn.net/e_inch_photo/article/details/58594274
本文博客地址:
http://blog.csdn.net/e_Inch_Photo/article/details/60466051
作者博客:http://blog.csdn.net/e_inch_photo
如果喜歡就分享吧!