Subdirectories on Android

@Tom

Thanks for that, it helps.

Is using the file system to access files in resource subdirectories something Ansca is working on, or is this permanently not an option for Android?

Can the file i/o on Android access subdirectories in the documents directory? [import]uid: 4596 topic_id: 9139 reply_id: 35315[/import]

Android devices use a virtual file system so it’s hard to work with. I don’t know if subdirectories in the Resource directory will be supported in the future.

As far as I know, creating subdirectories at run-time is not supported in Corona. [import]uid: 7559 topic_id: 9139 reply_id: 35317[/import]

@Tom

Thanks =’ | [import]uid: 4596 topic_id: 9139 reply_id: 35319[/import]

Hello,

I have built an app for Android using 2011.484 SDK version. My device is running Android 2.2. When I try to install .APK package file on device, I am getting ‘INSTALL_FAILED_INVALID_APK’ error. I was able to build for the same device using 2011.288 SDK. Please help!

Thanks [import]uid: 44599 topic_id: 9139 reply_id: 36202[/import]

If your device is not running a ARMv7 processor, it’s no longer supported starting with build 328. [import]uid: 7559 topic_id: 9139 reply_id: 36332[/import]

Ok. Can you please send me the link to download Corona SDK older than 2011.328. So that I can test my app on my ARMv6 Android.

Thanks [import]uid: 44599 topic_id: 9139 reply_id: 36425[/import]

Hello,

Does corona’s latest SDK build support Cortex-A8 processor?
I am planning to buy a new device for testing my android apps.
If you have the list of the phones which corona’s latest sdk does support, then please give it to me. Any help would be appreciated.

Thanks
[import]uid: 44599 topic_id: 9139 reply_id: 37405[/import]

Corona only supports processors that support the ARMv7 processor.
Here is a link to ARMv7 devices:
https://wiki.mozilla.org/Mobile/Platforms/Android [import]uid: 7559 topic_id: 9139 reply_id: 37485[/import]

Capitalisation caught me out. A file “required” as utilities in the code but actually called Utilities.lua. Worked fine in the simulator but not on the Android device. A genuine “slap my forehead” moment when I found it. [import]uid: 95579 topic_id: 9139 reply_id: 66993[/import]

I’m getting the same exception, even when the files are in the root folder.

06-05 15:28:40.221: W/System.err(1434): java.io.FileNotFoundException: /coronaResources/Track2.mp3 (No such file or directory)
06-05 15:28:40.231: W/System.err(1434): at org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method)
06-05 15:28:40.231: W/System.err(1434): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:152)
06-05 15:28:40.231: W/System.err(1434): at java.io.FileOutputStream.(FileOutputStream.java:97)
06-05 15:28:40.231: W/System.err(1434): at java.io.FileOutputStream.(FileOutputStream.java:69)
06-05 15:28:40.231: W/System.err(1434): at com.ansca.corona.NativeToJavaBridge.externalizeAsset(NativeToJavaBridge.java:462)
06-05 15:28:40.231: W/System.err(1434): at com.ansca.corona.NativeToJavaBridge.callExternalizeResource(NativeToJavaBridge.java:499)
06-05 15:28:40.231: W/System.err(1434): at com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)
06-05 15:28:40.231: W/System.err(1434): at com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:100)
06-05 15:28:40.231: W/System.err(1434): at com.ansca.corona.Controller.onDrawFrame(Controller.java:240)
06-05 15:28:40.231: W/System.err(1434): at com.ansca.corona.CoronaRenderer.onDrawFrame(CoronaRenderer.java:74)
06-05 15:28:40.231: W/System.err(1434): at android.opengl.derived.SwapGLSurfaceView$GLThread.guardedRun(SwapGLSurfaceView.java:913)
06-05 15:28:40.241: W/System.err(1434): at android.opengl.derived.SwapGLSurfaceView$GLThread.run(SwapGLSurfaceView.java:773)
[import]uid: 131398 topic_id: 9139 reply_id: 110439[/import]