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

Web and WebWorks Development

Reply
Trusted Contributor
lathajagan
Posts: 114
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel
Accepted Solution

rim:splash problem

Hello All,

i am trying to use , as suggested in developer documentation for BB10:

<rim:splash src="splash-1024x600.png" />
<rim:splash src="splash-600x1024.png" />
<rim:splash src="splash-1280x768.png" />
<rim:splash src="splash-768x1280.png" />

 

but whatever is the first image specified is picked up irrespective of the height and width of the phone.

what is the use of above element then, if its not able to automatically identify which splash to be picked up for which device?

is this is an error for rim:splash and needs to be logged in Git. please let me know.

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
New Developer
ahindam
Posts: 8
Registered: ‎02-07-2011
My Device: Playbook
My Carrier: Unlocked

Re: rim:splash problem

I am not sure that 1024x600  is acceptable for BB10.

 

I am using

 <rim:splash src="splash-1280x768.jpg"/>
 <rim:splash src="splash-768x1280.jpg"/>

works fine.

 

Please use plain text.
New Developer
abinlesly
Posts: 105
Registered: ‎06-11-2013
My Device: DEVELOPER
My Carrier: vodafone

Re: rim:splash problem

Hey,

I dont think there is a need to provide the resolution as long as the orientation is different . i normally use

<rim:splash src="splash.png"/>

for splash screen for the default orientaion.

******Blackberry Developer*******---Built for the Kill-----
#######Developer of @Sudoku#########
Please use plain text.
New Developer
ahindam
Posts: 8
Registered: ‎02-07-2011
My Device: Playbook
My Carrier: Unlocked

Re: rim:splash problem

Resolution for orientation:  

1280x768 for splash when the device is in Landscape.

768x1280 for splash when the device is in  Portrait.

Please use plain text.
Trusted Contributor
lathajagan
Posts: 114
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: rim:splash problem

if i have two different resolution phone e.g:
<rim:splash src="splash-1280x768.jpg"/> - Z10
<rim:splash src="splash-720x720.jpg"/> - Q10
--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 614
Registered: ‎10-01-2009
My Device: Z10
My Carrier: Bell

Re: rim:splash problem

I use the same thing in my Built For BlackBerry samples and the proper screen is detected fine.  Also works for landscape vs. portrait for me.

 

    <rim:splash src="splash-1280x768.png"/>
    <rim:splash src="splash-720x720.png"/>    

 

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
New Developer
ahindam
Posts: 8
Registered: ‎02-07-2011
My Device: Playbook
My Carrier: Unlocked

Re: rim:splash problem

I believe that you can have the three

<rim:splash src="splash-1280x768.jpg"/> - Z10 landscape

<rim:splash src="splash-1280x768.jpg"/> - Z10 Portrait
<rim:splash src="splash-720x720.jpg"/> - Q10

 

Even futher there is localatized splash screen for different languages as:

<rim:splash src="locales/fr/splash-1280x768.jpg"/> - Z10 landscape French

. . . 

 

Please use plain text.
BlackBerry Development Advisor
anzor_b
Posts: 164
Registered: ‎09-24-2012
My Device: White BlackBerry 10
My Carrier: Bell

Re: rim:splash problem

The images are selected based on their size, not filename. Make sure these are sized exactly to match different form factors/oreintation and the OS will pick up the correct one at runtime.

Please use plain text.
Trusted Contributor
lathajagan
Posts: 114
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: rim:splash problem

@anzor_b, how the image should be made? the size of the image i made is based on 346x346- which is Q10 size, but how to make 720x720 image, its the resolution? we should take care there?
--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
BlackBerry Development Advisor
anzor_b
Posts: 164
Registered: ‎09-24-2012
My Device: White BlackBerry 10
My Carrier: Bell

Re: rim:splash problem

@lathajagan, the size of splash image needs to match the physical dimensions (720x720), not reference dimensions (346x346).

 

What you need to do is create an image of the following sizes using an image editor of your choice.

 

720x720 for Q10

1280x768 for Z10 Landscape
768x1280 for Z10 Portrait

 

Then, place your 346x346 designed image in the center - or something similar, give it a background, etc.

Please use plain text.