简体   繁体   中英

Activity with webView Loading every time

In my app i have button when it clicked the app goes to another activity with webView to show HTML table The issue here is when i press back and return to the same activity the webView load agin and it take while how can i prevent it from loading over and over agin and will turnning the HTML table to listview will make it loade faster if yes . How ?

You can Preserving the state of an Android WebView on screen orientation change or activity is paused.

If you've tried to use a WebView inside your app, you know that the standard behavior on screen orientation change is not satisfactory in most cases because the full state of the WebView is not preserved or similarly when your activity is pause same situation WebView will change their sate.

possible implementation to keep the full state of the WebView here complete tutorial and code is given you can get idea from this code&tutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM