Check Mobile App
Read now
Start a Project

How show the progress dialog in Webview to load the URL

Save

In this blog,
We have shown you how to add the progress dialog while the Webview loads the URL.

Webview: A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity.

It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.

 

How to load the URL in Webview 

Webview client,

If you got an error “Activity has leaked window that was originally added”

>> Maybe You’re trying to show a Dialog after you’ve exited an Activity.

So simply call the dismiss() on the Dialog you created in before exiting your Activity, e.g. in onPause() or onDestroy()

 

Source: developer.android.com/

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


1 comments

  • govtvacancyalert
    java class is ok but what about xml file
    how to use process bar
  • css.php

    When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

    Michael Urresta

    Michael Urresta

    Talk to Sales

    Global

    Live Chat
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home