Cannot list a subdirectory of system.ResourceDirectory on Android

I just want to add the filenames of a directory to a table.

This information is incorrect: https://docs.coronalabs.com/api/library/system/pathForFile.html

It says no parameters, or parameters (nil, system.resourceDirectory) should return a path, but instead, it returns nil.

When the problem is worked around by following the example here: https://docs.coronalabs.com/api/library/system/ResourceDirectory.html

Then the Android device gives the runtime error of no such file or directory for “/data/data/reverse.domain.name/files/coronaResources/mysubdirectory” 

The subdirectory is there and I’ve tried with or without trailing slash for lfs.dir.

On the phone, the folder “/data/” is empty.

The exact same code works in Simulator and on a real Iphone device.

On Android there isn’t a system.ResourcesDirectory, it’s a .zip file. Android extracts files as needed from the apk. There isn’t anything can be done about this.

Rob

On Android there isn’t a system.ResourcesDirectory, it’s a .zip file. Android extracts files as needed from the apk. There isn’t anything can be done about this.

Rob