I have an Android app that simply houses a website. I would like the app to cache the pages of the website for offline use.
I\'m doing a simple test to see if the cache
Perhaps a solution to your problem would be to make an HTTP get request alongside your webview loading.
The result of the get request could be stored in a string persistenly in sharedpreferences, and it will be the HTML that your php renders.
in your android lifecycle, you can determine if the app is offline, and if it is offline you can load the last saved version of the site from string
webview.loadData(yourSavedString, "text/html", "UTF-8");
although if there are images you will have to make extra considerations, but if the images are not dynamic you can store them in your app's asset folder and replace the URL in the saved string with the asset locations.
although it does not solve why your webview is not caching, it will accomplish the same end goal or viewing the page offline