11-16-2012 10:35 PM
I can't seem to get my splash screen to show up in my Landscape-only BB10 game.
I tried
<splashscreen>portrait.png:landscape.png</splashs
wich works fine in my other (portrait and landscape) app - (I just made up a portrait version of my splash as well to fit the syntax).
Then I tried
<splashscreen>:landscape.png</splashscreen>
and
<splashscreen>landscape.png</splashscreen>
Then I tried the format suggested in this article
http://devblog.blackberry.com/2012/11/porting-air-
<splashScreens> <!-- <image>splash-1024x600.jpg</image> --> <!-- <image>splash-600x1024.jpg</image> --> <image>splash-768x1280.png</image> <image>splash-1280x768.png</image> </splashScreens>
(and yes, I did change the names of my files accordingly - even though I'm not sure which is supposed to be the portrait and which the landscape one, and I also tried commenting out one either of the two files )
I checked that the files are in the .bar file, and the Manifest always shows something like this, which sounds about right:
Entry-Point-Splash-Screen: {1280x768}air/splash-1280x768.png
or when I use two files
Entry-Point-Splash-Screen: {1280x768}air/splash-1280x768.png:{1280x768}air/sp
But no splash screen ever shows up unless I set
<autoOrients>true</autoOrients>
in the -app.xml file ....
Can anyone think of anything else I can try?
Anna
My app : Get set - Get up! Get ready for the snooze revolution.
Solved! Go to Solution.
11-17-2012 09:47 AM
11-17-2012 01:57 PM
jtegen wrote:
I have:
<splashscreen>assets/splash.png:assets/splash_portrait.png</splashscreen>
That seems to work fine.
and do you have <autoOrients>false</autoOrients> in the -app.xml file ?
11-17-2012 03:51 PM
11-17-2012 04:00 PM
I already tried that ... :-( but thanks for the suggestion
My app : Get set - Get up! Get ready for the snooze revolution.
11-19-2012 01:22 PM
have you tried setting the aspectRatio? I'm using this for all my landscape apps
<autoOrients>false</autoOrients>
<aspectRatio>landscape</aspectRatio>
<fullScreen>false</fullScreen>
<visible>true</visible>
and in your bardsescriptor / blackberry-tablet.xml just
<splashscreen>splash.png</splashscreen>
11-19-2012 02:53 PM
ah, excellent - that was it! Thank you very much!
(I'm a bit embarrassed though - I've become so used to scrolling past all those xml settings that are commented out and that I've never needed, that it didn't even occur to me to have look in there - else I could have thought of trying the <aspectRatio> setting!)
Thanks
Anna
My app : Get set - Get up! Get ready for the snooze revolution.
11-19-2012 03:04 PM
11-19-2012 03:43 PM - edited 11-19-2012 03:44 PM
It seems to use the image size. I'm actually using this :
<splashScreens> <image>splash-1280x720.png</image> <image>splash-1024x600.png</image> <image>splash-1280x768.png</image> </splashScreens>
I've only tried it on the DevAlpha, but there it definitely picks the right one. However I just tried
<splashScreens> <image>splash-bb10.png</image> <image>splash-pb.png</image> <image>splash-dev.png</image> </splashScreens>
and it still works.
So I guess all we need is an image for every format we want to support.
My app : Get set - Get up! Get ready for the snooze revolution.