I've got a WebView, with a WebViewClient that defines onErrorReceived, and onPageFinished.
The onPageFinished gets called correctly, so I know that the WebViewclient is attached to the WebView correctly. However, there's some javascript in the WebView that calls:
location.href="http://kernel.org/asdf/asdf/asdf/asdf";
And the onErrorReceived listener is not called, even though it's a 404. Does it not work with javascript calls?
Edit: After some testing, I have found that NO 404s are reported to this function whatsoever. I have a test project set up here: http://vimtips.org/media/WebViewTest.zip
It appears that this method cannot be used to test for 404s. Anyone know of a way to do this?