0

In my Android app I need to cache the (already loaded) content of WebView on pause and then restore it on resume. I wonder how can I do this?

Karlen Kishmiryan
  • 7,322
  • 5
  • 35
  • 45

1 Answers1

0

It is cached automatically unless you disable. Nothing special needs to be done.

A common problem is that badly designed parent resets the view itself in methods like onStart or onResume, forcing to reload the contents. You need to be careful with the view in these methods, it may already with content.

Audrius Meškauskas
  • 20,936
  • 12
  • 75
  • 93