首页 / 浏览问题 / 移动GIS / 问题详情
Aandroid出现广播注销的问题
24EXP 2019年05月27日
Activity com.wmdp.urbanruralplan.activity.PlanProjectActivity has leaked IntentReceiver com.supermap.android.maps.NetworkConnectivityListener$ConnectivityBroadcastReceiver@4b7713f0 that was originally registered here. Are you missing a call to unregisterReceiver()?
    android.app.IntentReceiverLeaked: Activity com.wmdp.urbanruralplan.activity.PlanProjectActivity has leaked IntentReceiver com.supermap.android.maps.NetworkConnectivityListener$ConnectivityBroadcastReceiver@4b7713f0 that was originally registered here. Are you missing a call to unregisterReceiver()?

1个回答

你好,你使用的产品是哪一个?调试一下是哪句代码报的错误
9,127EXP 2019年05月27日
使用的是iclient for Android 能正常使用  但是说我广播未注册 我怕长期使用会导致内存泄漏  想知道为什么出现这种错误, 关闭当前页面后 log日志告诉我该关闭的页面的加载布局的那行代码出现了问题. 如果该页面的xml文件没有使用MapView 控件的话 不会提示该错误.
原因找到了 mapview 关闭当前页没有清理
...