I have a webview
WebView wv;
wv = (WebView)findViewById(R.id.webView1);
wv.loadUrl(\"http://example.com/\");
Simply said.
at:
I had the same problem of @GromDroid.
Maybe not the best solution but it works:
public class myJavaScriptInterface {
@JavascriptInterface
public void setVisible(){
runOnUiThread(new Runnable() {
@Override
public void run() {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
wb.setVisibility(View.VISIBLE);
}
}, 500);
}
});
}
}
I've added a delay of half second before make the webview visible.