I want to allow my users to load files onto their device for my Corona app to use. Searching the forums and on Google I have not found any examples and quite a few “This is not possible!” I find this hard to believe. Could this be the case?
My Android device has a directory on /storage/emulaed/0 (“Device storage”) that contains many directories from many of the apps I have installed. Does Corona allow me to create a directory like this?
I have been able to find the files I use in my app that exist in a sub directory in the same location as my main.lua. I think this location is the system.ResourceDirectory. These are found here:
/data/data/com.domain.name.app/files/coronaResources
I have also located the files that are created in the simulator’s sandbox (Simulator:File>>Show Project Sandbox - Documents). I think this location is the system.DocumentsDirectory. These are found here:
/data/data/com.domain.name.app/app_data
I can see these because I have rooted my device and am using a root enabled file explorer. Unfortunately, this will not work for a majority of users.
Since almost all of my other apps can create accessible directories, surely this is possible. If this is possible with native code or other frameworks, why not Corona?
If I’m missing something obvious, then where is there a good example of this? OR… Is this on a to do list somewhere?
I’m not familiar with the Apple world, and don’t image that this would be remotely possible there, but I’d like be able to do this for Android and Windows. Can I do this for Windows?
Thanks!!