I’ve display the splash screen, after finish the splah time , i start the next activity.
In second activity i’ve webview. i load html file on webview.
My problem is , after closing splashscreen, black screen has come. after that only webview show.
How to avoid this.
i’ve used below code to load html file on webview .
webView.loadData(getString(R.string.termsofuse_content), "text/html", "utf-8");
This is because
WebViewtakes some time to load the Data and until it does that you will be seeing a Black Screen or a empty screen.To overcome this, you can use the
WebViewClientand show aProgressDialoguntil the WebView loads the data completely.