Is there a way to have a splash screen display until a WebView object is done loading a web page? As far as I can tell, loadUrl is a non-blocking call, so that after calling it the web page may not be done loading for a while.
I've tried looping on the getProgress method, but it doesn't seem to work - I never see my splash screen come up, despite the call to setContentView for the splash screen being the first line in my activity's onCreate method.
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
SAWebView browser = new SAWebView(this);
browser.loadUrl(urlString);
browser.clearCache(true);
setContentView(browser);
But even if I put a loop in between the call to clearCache and the second call to setContentView, it seems to just skip straight to the web view - which then remains blank while the page is loading.

