Hi folks.
I'm developing an app that uses webviewer to view html files located in the assets directory. Initially, it reads html files included as assets in the app apk file. This works fine and the hrml files display fine.
Twice a month, the app runs a check with my web server to download the latest version of these html files. It uses the web component to get the files and store them in the assets folder. This works fine - the files download and are stored in the assets dir.
The new html files can be viewed using the android file manger, which confirms that they're in the assets dir and I cannot see the old ones there (they must be overwritten - which is fine, as I only want one version there at any one time), BUT, and this is the problem, when you load the app and try to view the files through it, it displays the original html files that were packaged with the app and not the new ones downloaded from the server.
I looks like the app or webviewer component is caching the files somehow, but it's not that straightforward as my app runs the download on first run as well (if there's a net connection), so the new html files should be downloaded to the assets dir before the web viewer even opens them for the first time.
Does anyone know what's going on here? I have html meta commands in the html files to try to force no caching etc., but that makes no difference. I'm pulling my hair out here!
Any help would be much appreciated :)
Thank you.
--