Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 194
Registered: ‎11-12-2010
My Device: Not Specified
Accepted Solution

BB10: Splash screen for landscape-only app not showing

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</splashscreen>

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-playbook-apps-to-blackberry-10/ :

 

	<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/splash-768x1280.png

 

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.

 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: BB10: Splash screen for landscape-only app not showing

I have:
<splashscreen>assets/splash.png:assets/splash_portrait.png</splashscreen>

That seems to work fine.
Highlighted
Developer
Posts: 194
Registered: ‎11-12-2010
My Device: Not Specified

Re: BB10: Splash screen for landscape-only app not showing


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 ? 
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: BB10: Splash screen for landscape-only app not showing

In my case, I am allowing rotation. Try placing the same filename twice with the colon in between to see if that will work in your case.
Developer
Posts: 194
Registered: ‎11-12-2010
My Device: Not Specified

Re: BB10: Splash screen for landscape-only app not showing

I already tried that ... :-(   but thanks for the suggestion

 

 


My app : Get set - Get up!   Get ready for the snooze revolution.

Developer
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: BB10: Splash screen for landscape-only app not showing

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>

 

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
Developer
Posts: 194
Registered: ‎11-12-2010
My Device: Not Specified

Re: BB10: Splash screen for landscape-only app not showing

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.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: BB10: Splash screen for landscape-only app not showing

On the new spashScreens choices, should I assume they are looking for specific file names to know which ones to use or do they look at the image size to know which one to use?
Developer
Posts: 194
Registered: ‎11-12-2010
My Device: Not Specified

Re: BB10: Splash screen for landscape-only app not showing

[ Edited ]

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.