Splash Screen working in Simulator but not on Device

Hello there,

I’m having a problem getting a Splash Screen to work on my game when it’s being run on a device.

My game launches and runs only in Landscape mode and my build.settings includes:

 orientation =  
 {  
 default = "landscapeRight",  
 supported =  
 {  
 "landscapeLeft", "landscapeRight"  
 },  
 },  

In my project’s directory (same as main.lua) I have Default.png, Default-Landscape.png, Default-LandscapeRight.png, and Default-LandscapeLeft.png. I’ve tried adding/removing different combinations of the images, but the Splash Screen still only shows up on the simulator.

If I run my game on a device, I get a black screen with the iPhone’s status bar in landscape mode, until my game finishes loading about 5 seconds later.

Any ideas?

Thanks in advance! [import]uid: 36054 topic_id: 7204 reply_id: 307204[/import]

Double check the case of your filenames… the simulator isn’t case sensitive but the iphone is. For example Default.png is correct but default.png won’t load on the iphone.
At least I’m pretty sure this is true… ; ) [import]uid: 16901 topic_id: 7204 reply_id: 25352[/import]

Thank you. That fixed most of the issue. The game now launches the splash screen when running on my iPhone.

However, the status bar does not disappear when the splash screen comes up (on both the simulator and a real device). So you can still see the time, battery, etc. in landscape mode above the splash screen.

As soon as the splash screen disappears and my game loads, the status bar is removed (because display.setStatusBar(display.HiddenStatusBar) is one of my first lines of code), but I need to know how to get rid of the status bar while the splash screen is up.

Any ideas? [import]uid: 36054 topic_id: 7204 reply_id: 25354[/import]

Use UIStatusBarHidden

[code]
settings =
{
orientation =
{
default =“landscapeRight”,
supported =
{
“landscapeLeft”,“landscapeRight”
},
},

iphone =
{
plist =
{

UIApplicationExitsOnSuspend = true,
UIStatusBarHidden = true

},
},

}
[/code] [import]uid: 8366 topic_id: 7204 reply_id: 25405[/import]

That did it! Much appreciated! [import]uid: 36054 topic_id: 7204 reply_id: 25407[/import]

Hey guys,

I’m having the same issue; when I build for the Android, it works on the sim, but not the phone. It’s just a blank screen. I’ve tried both Default.png and default.png to no avail.

Documentation on splash screens is non-existent, though they are pretty much standard. On a youtube video, I saw somebody use load(50) to control the load splash screen, though it wasn’t for Corona…didn’t work.

Is their any syntax I can put in to control the splash/default screen and make it work?

Michael

P.S. I think the Android developers need their own section… [import]uid: 77730 topic_id: 7204 reply_id: 49960[/import]

Make sure the png file is RGB 32bit too. [import]uid: 31262 topic_id: 7204 reply_id: 49980[/import]

Lol. This drove me crazy when I first started out with Corona. There is a post somewhere or blurb about this. It says the splash screen is only for iOS builds. Something to do with iOS using the splash screen not Corona.

I’m building for Android and I don’t even bother putting the default.png in the folder. Since it’s not needed.

[import]uid: 38820 topic_id: 7204 reply_id: 50018[/import]

Hello everyone,

The “Default.png” splashscreen feature is not supported on Android yet. Sorry about the confusion. It’s on our to-do list, but it won’t likely be implemented any time soon since you can work-around this by displaying your own splashscreen image in Corona. [import]uid: 32256 topic_id: 7204 reply_id: 50019[/import]

@glennbjr Thank you!

I will have to figure out the work around for the splash screen then. Hopefully, somebody has posted some code for that? :wink:

Thanks everyone!

M [import]uid: 77730 topic_id: 7204 reply_id: 50038[/import]

Is there an example of this out there somewhere? How to do this? [import]uid: 35378 topic_id: 7204 reply_id: 53541[/import]