webview在设置放大缩小功能时,android.widget.ZoomButtonsController错误解决办法

来源:互联网 发布:中国贸易条件变化数据 编辑:程序博客网 时间:2024/05/20 21:43

错误:

Activity com.example.alex.newtestproject.serverapi.XApiActivity has leaked IntentReceiver android.widget.ZoomButtonsController$1@cab7aff that was originally registered here. Are you missing a call to unregisterReceiver()?


解决办法:

@Override    protected void onDestroy() {        super.onDestroy();        ViewGroup view = (ViewGroup) getWindow().getDecorView();        view.removeAllViews();        wvContent = null;    }


阅读全文
0 0
原创粉丝点击