Black screen when run my aplication [Android]

Hi there!

I compile my game to Android (.apk) to see if it works in my mobile phone.

I installed the game, but I only see a black screen. It’s the same in BlueStack Android emulator, the black screen. In corona SDK emulator works perfectly.

Why I see that black screen and not my game?

Goodbye!

Help please :smiley:

I suggest you read and try the strategies described in this blog post about debugging: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/.

  • Andrew

Thanks for answering, but I tried this: adb logcat Corona:v *:s 

And it didn´t show anything. 

How I can solve my problem?

When your Android device is connected to your computer, in the command line, first try entering “adb devices”.  It should show your device connected.  If it does, then enter “adb logcat Corona:v *:s”.  Then run your app.  Any runtime errors in your code will get printed to the command line, and any print statements in your code will also get printed.

The most common reason why something works on the Simulator but not on the device is that file names are case-sensitive on the device, but not in the Simulator.  So I guess you check that carefully.

  • Andrew

I see emulator-5554 device, but not my mobile phone. I have USB debbuging activate.

Hmm, I don’t know why your device wouldn’t appear, if it’s connected to your computer.

Anyway, you can try adb logcat and run your app in the emulator, and you should see some output in the command window.

  • Andrew

In which emulator?

Solved. I installed my phone drivers and then, close Bluestack Android Emulator.

Do this in cmd “adb logcat Corona:v *:s” and run my app in my android device. Finally, I found the error :smiley:

Thanks aukStudios :wink:

Help please :smiley:

I suggest you read and try the strategies described in this blog post about debugging: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/.

  • Andrew

Thanks for answering, but I tried this: adb logcat Corona:v *:s 

And it didn´t show anything. 

How I can solve my problem?

When your Android device is connected to your computer, in the command line, first try entering “adb devices”.  It should show your device connected.  If it does, then enter “adb logcat Corona:v *:s”.  Then run your app.  Any runtime errors in your code will get printed to the command line, and any print statements in your code will also get printed.

The most common reason why something works on the Simulator but not on the device is that file names are case-sensitive on the device, but not in the Simulator.  So I guess you check that carefully.

  • Andrew

I see emulator-5554 device, but not my mobile phone. I have USB debbuging activate.

Hmm, I don’t know why your device wouldn’t appear, if it’s connected to your computer.

Anyway, you can try adb logcat and run your app in the emulator, and you should see some output in the command window.

  • Andrew

In which emulator?

Solved. I installed my phone drivers and then, close Bluestack Android Emulator.

Do this in cmd “adb logcat Corona:v *:s” and run my app in my android device. Finally, I found the error :smiley:

Thanks aukStudios :wink:

I know the topic is old but black screens are often caused by not beeing able to load assets.

Just avoid subfolders if you don’t know how to work around. Just put everything in the same directory.

I know the topic is old but black screens are often caused by not beeing able to load assets.

Just avoid subfolders if you don’t know how to work around. Just put everything in the same directory.