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

Reply
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
Accepted Solution

BB10 Splash Screen Syntax

Has the syntax to show the splash screen change for BB10?  In bar-descriptor.xml:

 

<splashscreen>assets/splash.png</splashscreen>

 

Does not seem to work anymore.  The PNG file is in the BAR file.

Developer
scrid2000
Posts: 142
Registered: ‎07-27-2011
My Device: Red Z10, 32GB PlayBook, Numerous Android/WP8/FirefoxOS/Other devices

Re: BB10 Splash Screen Syntax

[ Edited ]

Edit: This is what works for WebWorks; I'm not certain it will work for Air, but it should.

/edit

 

Yes it has. Use:

 

<rim:splash src="img/splashscreen.jpg" />

-----------------------------------------------------------------------------------------



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

Re: BB10 Splash Screen Syntax

Thanks for the response. That (and variations of it) did not seem to do it.
Retired
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook

Re: BB10 Splash Screen Syntax

I'm not sure why yet but you need to add a colon.

 

So - <splashscreen>splash.png</splashscreen>

 

Should be - <splashscreen>:splash.png</splashscreen>

 

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Retired
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook

Re: BB10 Splash Screen Syntax

And the answer is you can use 2 different splash screens.

 

<splashscreen>landscape.png:portrait.png</splashscreen>

 

Cheers,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: BB10 Splash Screen Syntax

Thanks. That seem to do it.