I just read this piece on the Resources Folder which states
[text]
On Android devices, there is no Resources folder because all resource files reside inside a compressed APK file.
An Android APK is really a zip file. The files in the resource directory are inside the APK file, therefore they are compressed within a zip file (instead of residing in an actual directory). The Lua I/O API such as io.open() is unable to open/extract files inside a zip file, thus it cannot open files within an APK.
With that said, we’ve implemented some special handling on Android. Calling system.pathForFile() on certain file types will cause Corona to automatically extract that file and copy it to an outside directory. It is wasteful on storage space, but it does allows Lua I/O APIs to access certain file types.
system.pathForFile() will auto-extract all file types EXCEPT the following: ? *.html? *.htm? *.3gp? *.m4v? *.mp4? *.png? *.jpg? *.ttf
This means that the above file types cannot be accessed by Lua I/O API. All other files will be automatically extracted when calling system.pathForFile() first.
Workaround:
One way to access one of the above files (e.g., png and jpg) is to rename the file to something like “file.png.txt”. You would typically copy one of these files to the Documents or Temporary directory and rename it back to it’s original name. Just be aware that large files will add to the memory space used by your app.
[/text]
I have never heard of this before… Can any of you guys confirm from which version of Corona, the above applies? I mean I have been using Corona for a year or so, and I never knew about this, but still I haven’t got any error because of this till now… [import]uid: 64174 topic_id: 33620 reply_id: 333620[/import]