I have a WebView and I want to capture an error, most likely related
to a web page having an invalid SSL certificate (company Intranet).
Currently the MyWebViewClient.onPageStarted() method is called, and no
secure content is shown the the page.

Generally I would expect WebViewClient.onReceivedError() to be called
to handle this situation, although the documentation is not quite
clear on exactly what kind of errors this method covers.

Looking at the Android Browser implementation source code, it seems to
call WebViewClient.onReceivedSslError() on line 2954, which triggers
the relevant site certificate prompt:
http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=blob;f=src/com/android/browser/BrowserActivity.java

...which of course is a method that was removed in 0.9:
http://code.google.com/android/migrating/m5-0.9/changes/android.webkit.WebViewClient.html

I am not clued up enough to take on the WebKit source and can't find
any documentation on what if anything has replaced the
onReceivedSslError() method.

Is this a bug/omission in the Android platform?  How was the
"release-1.0" browser complied with missing classes?  Am I doing
something completely wrong?

Thanks in advance for your feedback.
Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to