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
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);