Skip to content Skip to sidebar Skip to footer

Android Webview Loading Googlemap Data Rendering

I'm trying to display the div inside the WebView using the follwoing function String baseUrl = ''; String mimeType = 'text/html'; String encoding = 'UTF-8'; html = sb.toString(); S

Solution 1:

Try like that:

String html= "<html><body>You scored <b>192</b> points.</body></html>";
webview.loadData(html, "text/html", null);

Of corse, replace the html example i gave with your html.

Solution 2:

Stringhtml=" ...  your html here ..."
webView = (WebView) findViewById(R.id.your_webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadData(html,"text/html", "UTF-8");

Have you enabled javascript on your webview ?

Post a Comment for "Android Webview Loading Googlemap Data Rendering"