Help APK Black Screen

I upgrade Corona and MAke a new build but does the same thing  :( 

  1. You have the file: plugin_fuse.lua in your app but are not using it.  Delete that.

  2. You’re using TIF images.  These will probably work on the simulator but will not work on device.  Only use PNG or JPG images.

  3. I replaced your build.settings and conflig.lua files (http://spiralcodestudio.com/corona-sdk-pro-tip-of-the-day-36/)

  4. You’re using MP3 files a sound effects, which not entirely wrong isn’t great since you’re tyring to use them very quickly w/o pre-loading them.  I’d personally use WAV files for sound effects.

tested, works fine, PM’d link to code.

I kept your old config.lua and build.settings in folder ‘bak/’

THANK YOU MAN I LOVE YOU !! :wub: :wub:  <3 <3

Are their any errors? Check out the docs to see how to check for errors: https://docs.coronalabs.com/guide/distribution/androidBuild/index.html#debugapp

What do your logs (ADB) say?

When I start the Corona Simulator Debugger stops responding …

On the CMD i dont have errors …

That is different, in order for to help we need your android logs

@David,

Please post a link to your APK here using dropbox or some other free file sharing service.

I’ll run it and see what the logs say.  

In the future, you should take some time to learn how to run the Android Debug Bridge and logcat:

https://docs.coronalabs.com/guide/basics/debugging/index.html#device-debugging-android

This will help you a lot.

Also, if you’re using build 2830 or later, there should be a console log window that starts up with the simulator. If you have your device tethered to your USB port and choose “Install on device” from the build screen, your debug messages will be routed from the device to that console window (as long as you don’t dismiss the alert box that comes up, telling you what I’m saying above).

Much easier that dealing with adb logcat.

Rob

Here’s the link: https://63mmhr.s.cld.pt
Thanks for the help : D

Please post your build.settings

Thanks

Rob

  1. Rob is right!  I’m so old school and I forgot about that wonderful feature.

  2. I ran your game and I don’t get much in the output, but it looks like you’re trying to use a plugin you don’t have properly set up in build.settings (again points to Rob!)

I’m thinking it is:  https://docs.coronalabs.com/plugin/fuse/#project-settings

*Fixed borked link*

https://412rog.s.cld.pt

Is this what you talking about ?

Or this ?

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "landscapeRight", supported = { "landscapeRight","landscapeLeft" } }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, }

https://145v66.s.cld.pt

https://c2l4ir.s.cld.pt

I have this version and CMD are like that

He meant post the code here in a code block as you did in the second part…

I can see you are not including the code needed to enable the fuse.* calls.

https://docs.coronalabs.com/plugin/fuse/#project-settings

You have no plugins section and your android section is wrong for fuse.*

This is what the end of your file should look like:

 plugins = { ["plugin.fuse"] = { publisherId = "com.coronalabs" }, ["plugin.fuse.ads"] = { publisherId = "com.coronalabs" } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING", "com.google.android.c2dm.permission.RECEIVE", ".permission.C2D\_MESSAGE", "android.permission.GET\_ACCOUNTS", "android.permission.RECEIVE\_BOOT\_COMPLETED" }, }, }

That version of Corona is too old.  You should be using the latest public build at least:

https://developer.coronalabs.com/downloads/coronasdk

Note: In the future. Always tell folks what version of Corona you’re using as part of your question.  That would have saved a lot of time here.  

I think the only issue is you’re using an (dang) old version of Corona.

But if acrecento these lines in the file mobile phone is vertical and is all unformatted …

It is supposed to look like ?

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "landscapeRight", supported = { "landscapeRight","landscapeLeft" } }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, plugins = { ["plugin.fuse"] = { publisherId = "com.coronalabs" }, ["plugin.fuse.ads"] = { publisherId = "com.coronalabs" } }, } -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING", "com.google.android.c2dm.permission.RECEIVE", ".permission.C2D\_MESSAGE", "android.permission.GET\_ACCOUNTS", "android.permission.RECEIVE\_BOOT\_COMPLETED" }, }, }

Basically, but the order doesn’t matter.  I pasted the end of the file as not to have this turn into a huge thread with code that wasn’t relevant to the discussion.

First step.  Get the latest version of Corona and try that.  If you still have an issue with your UNMODIFIED code using the LATEST Corona then post back, but I think updating is all you need to do here.