Please post the bug # that was emailed to you back to this thread for future reference.
Thanks
Rob
Please post the bug # that was emailed to you back to this thread for future reference.
Thanks
Rob
Bug report: Case 33998
Any progress on this? I’m running into the same issue. My html files are loaded into the expansion file and not being found by my app. Tried renaming to htmlx but no luck.
There is a filed bug report on it and it’s assigned to an engineer. I don’t know where it is on the queue to be worked on.
Rob
Any progress in that issue? Or maybe there is a way to exclude file from going to expansion file just like new feature with excluding files from build?
This is major inconvenience that there is no way to control expansion file contents.
Can you try renaming the .html file to .htmlx, and then see if you can extract it? The extension shouldn’t matter to a native.newWebView() if that’s where you’re showing it. If you need it named .html, then after it’s extracted, you can rename it.
The problem is that on Android, the .apk (and the expansion file) is a big .zip file. Android doesn’t unpack this zip file. Corona will extract out certain files when system.pathForFile() is called and .html is one that is not. By renaming it .htmlx or something else, it will allow system.pathForFile() to do the extraction.
Rob
I was asking about webview issue.
But neither feeding webview with system.pathForFile with changed extension and simply changing extension doesn’t help. I am aware of that issue and did already try it.
I was hoping latest public release will fix it, but issue still remains.
Ideal solution would be allowing to exclude some files from going to expansion files. It will be useful not only this situation.
Hi,
This has been fixed and will be in build 2450.
I just filed Case 36272) webview cannot loading HTML files from ResourceDirectory when running an .apk that uses expansion files
because I hadn’t seen this thread. I’ll regress the bug using the newer build (I was using 2246 when I encountered the bug.)
UPDATE: Using build 2458, we are able to load html files from ResourceDirectory but other files in the same directory which are referenced by that HTML don’t load. For example, the following creates a broken image:
\<img src="SPMTM\_FRC\_WebOverlay\_Help\_nav.2.png" width="800" height="600" alt="Small Potatoes Magic Toy Maker Main Screen" /\>
@dchan: Although build 2450 did fix the ability to pull up the .HTML file from the root of the ResourceDirectory, the embedded IMG referencess result in broken images. So the bug is apparently only partly fixed.
Any progress on this? I’m running into the same issue. My html files are loaded into the expansion file and not being found by my app. Tried renaming to htmlx but no luck.
There is a filed bug report on it and it’s assigned to an engineer. I don’t know where it is on the queue to be worked on.
Rob
Hi,
This has been fixed and will be in build 2450.
I just filed Case 36272) webview cannot loading HTML files from ResourceDirectory when running an .apk that uses expansion files
because I hadn’t seen this thread. I’ll regress the bug using the newer build (I was using 2246 when I encountered the bug.)
UPDATE: Using build 2458, we are able to load html files from ResourceDirectory but other files in the same directory which are referenced by that HTML don’t load. For example, the following creates a broken image:
\<img src="SPMTM\_FRC\_WebOverlay\_Help\_nav.2.png" width="800" height="600" alt="Small Potatoes Magic Toy Maker Main Screen" /\>
@dchan: Although build 2450 did fix the ability to pull up the .HTML file from the root of the ResourceDirectory, the embedded IMG referencess result in broken images. So the bug is apparently only partly fixed.