I am loading a very small HTML content, which is stored in my assets folder. But the problem is that it blinks on the screen first and then shows the content. I searched for the problem, but found nothing good. My code is given below along with xml.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.dialog_nearby);
WebView wv;
wv = (WebView) findViewById(R.id.WebView);
wv.loadUrl("file:///android_asset/intro.html");
}
My XML
<WebView
android:id="@+id/WebView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>