Hello , I do when the APK and install on any mobile phone , the screen is black and nothing else happens … I wonder if someone can help me or say what to do
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
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
Please post your build.settings
Thanks
Rob
-
Rob is right! I’m so old school and I forgot about that wonderful feature.
-
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*
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", }, }, }
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:
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.
When I ran the APK you uploaded it spit out an error regarding Google push notifications. In particular it was complaining that you didn’t’ have this permission:
“com.google.android.c2dm.permission.RECEIVE”,
in your build settings. I see two different build.settings posted above, so I don’t know which one is right. In one, the only permission asked for was “INTERNET”. To use push notifications you have to use several more permissions. The second build.settings looks like it has them.
You probably cannot take Ed’s code and use it as your build.settings. You need to integrate it into the build.settings you have.
The current public build is 2906. I would suggest upgrading too.
Rob
I will upgrade Corona and see what happens 