Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancel loading in WebView on Android

How can I cancel a loading operation in WebView started by loadData() method?

like image 433
Marek Stój Avatar asked Feb 08 '10 16:02

Marek Stój


People also ask

How do I stop WebView from loading?

stopLoading will stop the current load.

How do I exit WebView?

If you have only 1 activity you can simply start the service and then call finish() on the activity. However, if you have multiple activities you have to make sure that you close them all (see also this post).

Why is my WebView not working?

You might often face issues in updating the chrome and Android System Webview. To fix this problem, you can reboot your device, check your internet connection, stop auto-updating all apps, clear Google Playstore cache, and storage, leave the beta testing program, and manually update Android WebView app from Playstore.


1 Answers

stopLoading will stop the current load.

like image 93
Anthony Forloney Avatar answered Oct 26 '22 01:10

Anthony Forloney