I have a page that loads some data in a webview.
webView.loadUrl();
How can I have a dialog with “loading…” in it show until the page finishes loading in the webview?
Do I need to get the network speed? Is there a FINISHEDLOADING() method I can use?
You can use
WebViewClientcallbacks. There areOnPageFinished()callback and lots of other useful things.So all you need to do is show progress right after
webview.loadUrl()method and dismiss it inonPageFinished()callback method.