Confused about handling SSL Errors in WebView

by whitemice » Fri, 13 Feb 2009 20:54:42 GMT

Sponsored Links
 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: ;a=blob;f=src/com/android/browser/

...which of course is a method that was removed in 0.9: 

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.


Confused about handling SSL Errors in WebView

by Manuel » Sat, 21 Feb 2009 01:48:35 GMT

 I have the same problem, and didn't manage to find a way even to
detect the error. Any clues?


Sponsored Links

Confused about handling SSL Errors in WebView

by whitemice » Tue, 24 Feb 2009 17:00:59 GMT

 Hi Manuel
So far no luck.
I'm sure any solution will involved the "SslErrorHandler" class, but I
have so far failed to find any post 1.0 example code. 


Other Threads

1. Jual Perdana XL 99rb lagi

Mods & rekan-rekan, misi numpang bandwidth lagi nih.

Titipan teman lagi, barang sudah di saya. Karena sudah nemu JNE yg buka Minggu, 
jadi besok tetap bisa kirim. Atau kalau mau dikirim via travel seperti Bro 
Benedict kemarin juga boleh. Mohon japri. Trims


"Indonesian Android Community [id-android]" 

2. new service: link to android market from device and computer

Awesome! Thanks much Rob! Bookmarking.

Out of curiosity, how do you go about doing this programmatically on
the Web server side?



3. flashing spica 2.1

4. Moto Mile & Droid mau ini?

5. Best practise for storing app. Configuration

6. Retrieving contact thumbnail images

7. Lg GW620