I am making an Android app for a web page using Android Studio, but i want the app to be able to cache the last web page that was viewed when there was internet connection so that on reopening the app, that web page would be the first page to be seen, even when the user is offline, just like the twitter app, and then on a button click the user can get updates from the web page.
Asked
Active
Viewed 1,541 times
4
-
Are you using a webview? – Anis LOUNIS aka AnixPasBesoin Jan 21 '17 at 13:47
-
@Double_M welcome to stack overflow. Please read the how to ask session: http://stackoverflow.com/help/how-to-ask. Can you post your code? – jonathanrz Jan 21 '17 at 14:08
-
See the following post: http://stackoverflow.com/questions/12872043/android-webview-display-webarchive – Yoni Gross Jan 21 '17 at 16:49
-
So sorry guys, I haven't been online for certain reasons. But i do appreciate the replies and assistant. – Double_M Dec 09 '17 at 23:16
1 Answers
1
Have you seen the WebView.saveWebArchive()
method? I think that's what you're looking for. Have a look at the following post for more info: Android WebView -> Display WebArchive

Jens Moser
- 153
- 7