Android Webview: Cannot call determinedVisibility() - never saw a connection for the pid

前端 未结 11 996
南笙
南笙 2020-12-01 14:11

I have a Android Webview and when I click on a link to download a file (image of pdf etc) I got a error message.

Error message:
Cannot call determinedVisibil         


        
11条回答
  •  爱一瞬间的悲伤
    2020-12-01 14:39

    I got the same error and Burhans solution was not helping me. I think things went wrong when you´re trying to load different urls too fast.

    Edit: Found a better solution credits go to user2652394 WebView must be loaded twice to load correctly

    You have to do something like this:

            webView.postDelayed(new Runnable() {
    
                @Override
                public void run() {
                    webView.loadUrl(landingpage);
                }
            }, 500);
    

提交回复
热议问题