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!?
I found a workaround by using
onPageFinished
method instead ofshouldOverrideUrlLoading
. It also provides the needed URL in the list of arguments.The only trick is to set a check so that the main logic of the method (in my case making a Toast) is not triggered when
onPageFinished
gets called on the the page load itself.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:
I faced the same problem. I can fix my issue by giving this code:
instead of:
then, set the
url
starts withhttps://
Check whether internet permission is properly set on the Manifest file. Make sure that the permission tag should be outside of your Application tag.
Hope this might help some one.