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 is working but unfortunately it is failing to load a page i have previously loaded in online mode, when offline. To make things clearer i load the following 2 pages when in online mode.
I am hoping that the "why-bmi.php" page is loaded into the cache as well as the subsequent page http://www.bmimobile.co.uk/. The latter page has a link on it which refers to the first page. If i then come out of the app and turn the network adapter off then go back into the app the "http://www.bmimobile.co.uk/" page DOES display but when i click the "why-bmi" link that page DOES NOT display. I short toast message displays saying "error loading page".
Can anyone tell me why the webview is not caching loaded page for later offline use?
Here's the main activity and i've extended the Application object defining the appcachepath.
Thanks in advance.
.This is the logging when the app is first loaded in online mode