Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
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.
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() @Override protected void onDestroy() { super.onDestroy(); progress.dismiss(); } @Override protected void onPause() { super.onPause(); progress.dismiss(); } 1234567891011 @Override protected void onDestroy() { super.onDestroy(); progress.dismiss(); } @Override protected void onPause() { super.onPause(); progress.dismiss(); }
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/
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
The results provided were above our expectations both in deliverability timeline as well as operation. They are a top-notch company with many resources and a company we feel honoured to work with again!
Lee Seward
Founder, Gro-Connect
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.