Android Question Webview: Detect secure webpage?

Shaun

Member
Licensed User
Longtime User
I am making a web browser for my app. I want the user to be able to just type: www.google.com instead of forcing them to type http://www.google.com.

I can add the 'http://' prefix easily enough, but I need a way to detect whether a webpage is secure or not. That way I can determine the correct prefix to add. Example: 'https://www.google.com'.

I will be using the app for work and most of our web based utilities are on secure pages.

How can I determine whether a webpage is secure or not with webview, webviewsettings or webviewextras libraries? Any hint is appreciated.

Thanks!
 
Top