Recently I was working on an app for Android 2.2 . I am using the same app on android 4.0 But, the webview doesn't displays the images and just shows a white screen.
I have just used simple code:
WebView mWebView2 = (WebView) findViewById(R.id.webViewQ2);
mWebView2.getSettings().setBuiltInZoomControls(true);
mWebView2.getSettings().setJavaScriptEnabled(true);
mWebView1.loadDataWithBaseURL("","<table width=\"100%\"><tr><td style=\"text-align:center; background-color:#c8c8c8;\">Question</td></tr></table>"+answer1, "text/html", "utf-8", "");
mWebView2.loadDataWithBaseURL("","<table width=\"100%\"><tr><td style=\"text-align:center; background-color:#c8c8c8;\">Question</td></tr></table>"+answer2, "text/html", "utf-8", "");
Anyone could help me Please all my code is working fine but this point.
Note:It sometimes automatically shows the images and sometimes doesnt show any thing.