I would like to speed up the loading of a webview that almost always (like in 90% of the times) will be loaded by the user. So it makes sense to pre-load the content upfront, for example in the main activity.
One feasible way would be to load the URL in the main activity or starter service and save the html in a global variable.
Later on, in the activity where the webview is going to be shown, it could then be loaded with the saved html.
Is the above strategy OK or is there a better way?
Ideally it should work also in B4i.
One feasible way would be to load the URL in the main activity or starter service and save the html in a global variable.
Later on, in the activity where the webview is going to be shown, it could then be loaded with the saved html.
Is the above strategy OK or is there a better way?
Ideally it should work also in B4i.