I’m using CoronaCards on Xamarin. I want to dynamically show animations from sd card but problem is CoronaView.Init() method calls only to Assets folder. How I can call to the corona project which located in sd card. Is there any way to do that? Please help anyone. Because, I’m proposing Corona SDK to my company to purchase it. Already converted java libraries to C# for Xamarin. Only this issue left.
medet - when you say an sd card, so this is an external card/storage you are talking about?
Yes. I need to store in external card.
medet - from one of our engineers:
You’ll need to create a new http://developer.android.com/reference/java/io/File.html
with http://developer.android.com/reference/android/content/Context.html#getFileStreamPath(java.lang.String) passing in “coronaResources” as the directory.
Then you need to add in a folder/file name. It will look something like:
File baseDir = context.getFileStreamPath(“coronaResources”);
File f = new File(baseDir, “folder/main.lua”);
// Write stuff to f
Then afterwards you should be able to use
coronaView.init(“folder/”);
Thank you! Everything works fine now.
medet - when you say an sd card, so this is an external card/storage you are talking about?
Yes. I need to store in external card.
medet - from one of our engineers:
You’ll need to create a new http://developer.android.com/reference/java/io/File.html
with http://developer.android.com/reference/android/content/Context.html#getFileStreamPath(java.lang.String) passing in “coronaResources” as the directory.
Then you need to add in a folder/file name. It will look something like:
File baseDir = context.getFileStreamPath(“coronaResources”);
File f = new File(baseDir, “folder/main.lua”);
// Write stuff to f
Then afterwards you should be able to use
coronaView.init(“folder/”);
Thank you! Everything works fine now.