My application has multiple WebView
s that stack on top of each other when the user goes to a new page. (This is done so that, when the user clicks the Back button, the current WebView simply slides away and reveals the previous WebView underneath, with no need to reload the page)
The problem is that, with more and more WebViews that are instantiated, the app's memory usage increases linearly, until it runs out of memory and crashes.
Now, I looked at the stock Android Browser app, and I see that I'm able to open a great number of tabs (each of which presumably has its own WebView?), and yet this barely makes a dent in its heap usage. How does the Browser do it?