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!?
This is how I fixed a similar issue:
I faced the same issue.
Was solved by giving a WebView a static height (ie 300dp) or specifying minHeight value.
Just a bit of configuration:
Background
Here is the source code of the method in the browser engine that gives the error (BindingManagerImpl.java), from Chromium source:
Analysis
It's a rendering warning from content.
Consecutive calls to
loadUrl
cause a race condition. The problem is thatloadUrl("file://..")
doesn't complete immediately, and so when you callloadUrl("javascript:..")
it will sometimes execute before the page has loaded.Detail
For more detail see this stackoverflow answer.
Late to party, but might help some. May sound silly as hell, but the mistake I made was not adding
http://
in the beginning of the URL.This problem in my case produce by incorrect settings in layout properties. I had used:
Instead of setting:
The problems had been solved, when I removed "layout_alignParent" settings.