-3

I have a third party link to webpage that takes literally 2 minutes to load up with video. While it is loading their is a blank page. I have no control over the page. Is there any way I can detect page loaded with a webview and display a loading dialog until the page appears?

Thanks

NextDroid
  • 337
  • 2
  • 4
  • 10

1 Answers1

0

Just do as below :

mWebView.setWebViewClient(new WebViewClient() {

public void onPageFinished(WebView view, String url) {
    // do your stuff here
}
});

and also this may be helpful :

How to listen for a WebView finishing loading a URL?

Community
  • 1
  • 1
Mahdi Giveie
  • 630
  • 1
  • 8
  • 25