How to cache a webpage for use in my Android app, even if offline

I am making an Android application for a web page using Android Studio, but I want the application to be able to cache the last web page that was viewed when connected to the Internet, so that when you open the application again, this web page is the first page you can see , even when the user is offline, just like the Twitter application, and then pressing the button allows the user to receive updates from the web page.

+4
source share
1 answer

Have you seen the method WebView.saveWebArchive()? I think what you are looking for. Take a look at the following post for more info: Android WebView -> Show WebArchive

0
source

Source: https://habr.com/ru/post/1667437/


All Articles