I am loading a url in a WebView
, but the WebViewClient
method OnReceivedError()
always gets called even when the page is loaded successfully. Does anybody have any idea why this is happening?
Asked
Active
Viewed 1,448 times
0
-
please post your code – drew moore Feb 27 '13 at 12:25
-
`onReceivedError` provides you with an `errorCode` - What is it? – Rawkode Feb 27 '13 at 12:29
1 Answers
0
Should have tried monitoring onReceivedError()
method in WebViewClient
If the page loads fine in the webview, the reason for the onReceivedError() being called is because of the warnings in the HTML/JS script, which you can just ignore, or fix by monitoring the error.

nithinreddy
- 6,167
- 4
- 38
- 44
-
@Rawkode: The error description says that the connection to the server wqas not successful. – 50EC07 Feb 27 '13 at 16:08
-
Then how do I know if I have to ignore the error or is this some serious error, because evry time it says 'connectio to server was not successful'. – 50EC07 Feb 27 '13 at 16:11