百度移动定位api吧 关注:41贴子:219
  • 0回复贴,共1

使用百度定位退出程序时报IntentReceiverLeaked

取消只看楼主收藏回复

11-30 10:19:12.769: E/ActivityThread(25167): Activity com.reyo.makedinner.MainActivity has leaked IntentReceiver com.baidu.location.i$b@4052b040 that was originally registered here. Are you missing a call to unregisterReceiver()?
11-30 10:19:12.769: E/ActivityThread(25167): android.app.IntentReceiverLeaked: Activity com.reyo.makedinner.MainActivity has leaked IntentReceiver com.baidu.location.i$b@4052b040 that was originally registered here. Are you missing a call to unregisterReceiver()?
一路查找,定位到这句话了:
mLocationClient = new LocationClient(this);// 需要getParent
是不是参数this不对,莫非是this.getParent(),我的MainActivity继承自自己的BaseActivity


1楼2012-11-30 10:26回复