Android Phonegap - TIMEOUT ERROR when trying to set a WebViewClient

后端 未结 3 641
再見小時候
再見小時候 2020-12-29 01:02

I\'m working with Android and Phonegap, and at the moment I\'m having trouble with one simple thing. I need to setup a webViewClient to the PhoneGap webView in order to capt

3条回答
  •  抹茶落季
    2020-12-29 01:32

    You forgot to call super ;)

        // Assign webclient.
        this.appView.setWebViewClient(new CordovaWebViewClient(me, this.appView) {
            @Override
            public void onPageStarted(WebView view, String url, Bitmap favicon) {
                super.onPageStarted(view, url, favicon);
            }
    
            @Override
            public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
                super.onReceivedError(view, errorCode, description, failingUrl);
            }
        });
    

提交回复
热议问题