I see my WebView is being reloaded in many different cases: after changing orientation, after turning off/on etc.
Is there a simple way to stop reloading WebView at all? It's kinda weird, when a component does such important things on its own, instead of throwing NeedReload event or something.
Regards,
UPDATE
To beat turning screen off as well as orientation handling, do this:
- Create the view in Application.onCreate().
- Add the view to a layout in Activity.onCreate().
- Remove the view from the layout in Activity.onDestroy().
Details are here: Attach/detach Android view to/from layout