I cannot access a local web application deployed to tomcat using Android WebView

Is it possible to open local hosting of a web application in tomcat using WebView ?

I tried to use

 webView.loadUrl("https://me.com/myproj/mobile/online/overview.do"); 

but instead I get a blank page. Any ideas on how to fix this?

0
source share
1 answer

Your problem is that you are trying to access the https address.

It seems that if you are developing a simple solution for version 2.2+:

 engine = (WebView) findViewById(R.id.my_webview); engine.setWebViewClient(new WebViewClient() { public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) { handler.proceed() ; } } 

But if you are developing older versions, you are having problems because this function introduced the API from Froyo.

Literature:

+2
source

All Articles