Fatal signal 11 (SIGSEGV) (WebViewCoreThre)崩潰的解決

這個崩潰在三星S4 android版本4.3的手機上 退出webview頁面的時候會出現。
當時遇到這個的感覺就是一個字,坑。

廢話不多說,直接上解決方法

    @Override
    protected void onResume() {
        super.onResume();
        if(webView != null){
            webView.resumeTimers();
        }

    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (webView != null) {
            webView.pauseTimers();
            ((ViewGroup) webView.getParent()).removeView(webView);
            webView.destroy();
            webView = null;
        }
    }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章