0

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?

Ahmad
  • 69,608
  • 17
  • 111
  • 137
50EC07
  • 25
  • 6

1 Answers1

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