Hi to all again,
I solved the problem, in the pathForFile Documentation API there’s this explanation :
Corona allows direct loading of images and audio files using the appropriate APIs, but it has limited access to resource files on Android using the file I/O APIs. Specifically, the following types can not be read from the resources directory: .html, .htm, .3gp, .lua, .m4v, .mp4, .png, .jpg, and .ttf.
Because of this limitation, if you have files of these types bundled in the core directory that you need to copy to another directory, you must change the file name so it can be accessed by the file I/O APIs. For example, if you want to move cat.png from the resource directory to the documents directory, it must be renamed cat.png.txt to be copied. See the Reading and Writing Files guide for more information and examples.
So …
First :
- Rename the files that you need be read with a txt extension ex: help.html to help.html.txt
Second:
- Check if the file that I need to load in the webview, exist in system.DocumentsDirectory with system.pathForFile( fname, path ) command.
Third:
- If the file doesn’t exist, copy the help.html.txt that exist in system.ResourceDirectory to system.DocumentsDirectory using two io.open command, one to read the file that will be copied and another to copy the content to system.DocumentsDirectory excluding the txt extension.
If anyone need some help please contact me
Lugato