Well I first tried adding in the onReceivedSslEror into the WebViewClient:
@Override
public void onReceivedSslError(WebView view, SslErrorHandler
handler, SslError error)
{
DebugLog.d(TAG, "SSL Error received");
handler.proceed();
}
When I ran it though, it never got hit, so I thought it must not be an SSL
issue.
BUT, then I tried using a browser on the device instead:
Intent myIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(uriString));
startActivity(myIntent);
When the browser came up it showed, you guessed it, a security warning
about the certificate! When I pressed Continue to add the exception the
page loaded just fine!
So, it's either forgo the WebView or get the site to update their
certificate.
THANKS!
On Friday, November 30, 2012 2:20:24 PM UTC-6, darrinps wrote:
>
> By golly it is a secured site. Hmmm...that could just be it. Odd that some
> versions of Android would care more than others but, hey, if it's the way
> it is then that's just the way it is.
>
> I would think that onReceiveError would get called though and it isn't.
> Just an over site by 2.3 possibly though.
>
> Thanks. I'll dig into this!
>
>
>
> On Friday, November 30, 2012 1:00:38 PM UTC-6, Nobu Games wrote:
>>
>> Here rings a bell... I had to work on a WebView based app about two years
>> ago and I also noticed the blank-page problem on some devices whereas it
>> worked just fine on others. It turned out that WebView rejected the SSL
>> certificate of the loaded webpage. So if you're loading an HTTPS page this
>> could be an explanation for that problem.
>>
>> If the server provider / owner of the web page to load does have a valid
>> certificate you need to verify that the certificate information is also
>> consistent and correct (must match the specific domain / subdomain).
>> Android can be very specific about that.
>>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en