100% Simulator & Windows-Android Black Screen Crash After Corona Labs Screen?

Hi,

Have a small 2 scene demo working 100% on both the Corona Simulator and EXE Windows platforms (Win 10 64)

My problem is that the demo refuses to work on my real Android smartphone (Samsung S7 Edge)

APK installs fine on Android device and does run and shows “Powered By Corona Labs” screen

followed by a black screen and apparent crash?

You can download the entire Corona SDK project in ZIP format HERE.

Any help would be greatly appreciated as Android is my main target, thanks!

JeZxLee

Have you looked at the console log on your Android device to look for errors?  If you don’t know how, see this guide:

https://docs.coronalabs.com/guide/basics/debugging/index.html

Device’s have case sensitive operating systems while Windows and macOS are not case sensitive. It’s very likely you’re running into a filename case sensitivity issue. Later versions of the Corona simulator should be issuing a warning in the Corona Simulator console log window that should be opening behind the simulator.

Rob

I locked your other thread and directed everyone here, so that we can have one thread to discuss your issue.

There are warnings in the Corona console log, but they are not case sensitive issues. The problem is starting the file path’s with “/”. That tells the operating system to look in the root folder of the device and then look for a folder named data. On devices there is no folder from the root named data and it would be locked if it existed. By leaving the leading “/” off, your image and audio paths become relative to your app’s sandbox and it will work as expected.

Rob

Holy Cow!

That fixed my issue on the Android device!

Thank you - continuing with development…

JeZxLee

P.S. - I have uploaded the fixed demo project at URL link on top of this forum thread…

CoronaSDK-Day3a.png

Have you looked at the console log on your Android device to look for errors?  If you don’t know how, see this guide:

https://docs.coronalabs.com/guide/basics/debugging/index.html

Device’s have case sensitive operating systems while Windows and macOS are not case sensitive. It’s very likely you’re running into a filename case sensitivity issue. Later versions of the Corona simulator should be issuing a warning in the Corona Simulator console log window that should be opening behind the simulator.

Rob

I locked your other thread and directed everyone here, so that we can have one thread to discuss your issue.

There are warnings in the Corona console log, but they are not case sensitive issues. The problem is starting the file path’s with “/”. That tells the operating system to look in the root folder of the device and then look for a folder named data. On devices there is no folder from the root named data and it would be locked if it existed. By leaving the leading “/” off, your image and audio paths become relative to your app’s sandbox and it will work as expected.

Rob

Holy Cow!

That fixed my issue on the Android device!

Thank you - continuing with development…

JeZxLee

P.S. - I have uploaded the fixed demo project at URL link on top of this forum thread…

CoronaSDK-Day3a.png