Help! I am adapting my iOS app to work on Android, and discovering it is a nightmare. We have big files, video and images, more than 100MB. So, I have to use an expansion file.
However, while Corona kindly creates expansion files for the app, it appears that system.pathForFile() does not adapt.
I cannot “find” files that are (or used to be) in the system.ResourceDirectory. That means my “settings.xml” just disappeared, and clearly, all my other config files will be gone, too. And, the sub-levels, so to speak, will be invisible, so I can’t load those, either.
Moreover, I’m not an Android expert, and I cannot figure out where these files have gone. So, after 40 hours of work, I am at a loss as to how to make this app work…the problem appeared when I turned on the expansion file setting in the build.settings…at the end of the project. No indication there would be trouble until I did that.
Possible fixes:
-
Please, don’t move anything but media files to the expansion! There’s no need — the chance of anyone creating xml/json/txt files that bump the app over 100MB is about zero.
-
Adapt the system.pathForFile so it tells us where the media files are, if there are in the expansion. I mean, basically, just adapt it so that if you’re looking a moved media file, it will tell us where it is.
UPDATES:
-
As I continue to work on this, I’ve discovered a plugin that might help.
-
Also, suggestions to look inside /sdcard/ for my files.