Reputation: 141
I'm trying to load a page (http://m.hotelkramervalencia.com/) on a Webview in Android. If I load it with an external app like Chrome or Firefox everything goes fine and it loads completely, but if I do it from a Webview it does not work. I have enabled the javascript but it's not solving the problem.
Is there anything I've forgotten or any idea of what's happening?
Thank you!
Upvotes: 1
Views: 171
Reputation: 9056
Be Sure WebView in XML file width and height is Match Parent
and check your INTERNET .
use like this ......
WebView mWeb=(WebView)findViewById(R.id.webview);
mWeb.getSettings().setJavaScriptEnabled(true);
mWeb.loadUrl("http://m.hotelkramervalencia.com/");
enjoy coding ..........
Upvotes: 1