Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 determinedVisibility() - never saw a connection for the pid 

Any idea what I do wrong? Who can help please!?

like image 671
Laurens V Avatar asked Oct 12 '15 13:10

Laurens V


2 Answers

Just a bit of configuration:

    webview.getSettings().setJavaScriptEnabled(true);     webview.getSettings().setDomStorageEnabled(true); 
like image 166
Burhan ARAS Avatar answered Sep 20 '22 04:09

Burhan ARAS


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); 
like image 30
Dennis Allert Avatar answered Sep 20 '22 04:09

Dennis Allert