I have a WebView with a WebViewClient that defines onErrorReceived and onPageFinished.
The onPageFinished function is called correctly, so I know that the WebViewclient is correctly bound to the WebView. However, there is some javascript in the WebView that calls:
location.href="http://kernel.org/asdf/asdf/asdf/asdf";
And the onErrorReceived listener is not called even if it is 404. Does it work with javascript calls?
Edit: after some testing, I found that NO 404s is being reported to this function at all. I have a test project created here: http://vimtips.org/media/WebViewTest.zip
It seems that this method cannot be used for testing 404. Does anyone know a way to do this?
synic
source share