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
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

How to keep specific splash screen images for portarit and landscape mode. for example I have  one 360x640 image  for portarit and another 640x360 image for landscape.

 

Both are different

 

 

when  the user  keeps phone in portarit mode     specific portrait image should be shown

 

 

Similarly when the user keeps  in landscape mode    specific landscape image should be shown  without changing the quality of the image.

 

 

Iam succeful in showing  1  splash image   in portarit mode        by using  

 

 

<rim:loadingScreen backgroundColor="#FFFFFF"
     backgroundImage="background.png"
     onFirstLaunch="true"
     onRemotePageLoad="true">
   <rim:transitionEffect type="fadeIn" direction="left" />
</rim:loadingScreen>
 
 
But in landscape mode the splash image qulaity is changing badly which I want to avoid  

 

 

New Contributor
Posts: 2
Registered: ‎05-21-2013
My Device: Z10
My Carrier: Telcel

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

try with this

<feature id="blackberry.app.orientation">
<param name="mode" value="landscape" />
</feature>
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

Hi Italiamx , thank you for responding  quickly.

 

 

Actually I did'nt get you.

 

 

My present code is like this to   show a single (one) splash image  i.e background.png       in landscape and portrait mode.

 

 

<rim:loadingScreen backgroundColor="#FFFFFF"
backgroundImage="background.png"
onFirstLaunch="true"
onRemotePageLoad="true">
<rim:transitionEffect type="fadeIn" direction="left" />
<rimSmiley Surprisedrientation mode="auto" />
</rim:loadingScreen>

 

 

But now my requirement is I have  to show  two different splash images i.e background1.png  and

 

background2.png

 

 

I want to show  background1.png  in  portrait mode        (360x640)

 

and                 background2.png in               landscape mode  (640x360)

 

 

 

I did'nt get  you     what does    your code do ?       

 

 

 <feature id="blackberry.app.orientation">
<param name="mode" value="landscape" />
</feature> "                       

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

Hi  Italiamx  ,

 

Iam eagerly waiting for the reply to my query ...

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

Hi Italiamx Iam eagerly waiting for your reply.

 

 

I have two  splash images

 

 

background1.png for  Portarit Mode

 

 

background2.png  for Landscape mode

 

 

 

 

Thanks

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

still waiting for the exact solution..

New Developer
Posts: 12
Registered: ‎06-17-2013
My Device: Blackberry 9800
My Carrier: Reliance

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape

Hi srk2012,
You can't apply 2 different splash screen inames for OS5,6,7.

check this link https://developer.blackberry.com/html5/documentation/rim_splash_element.html

Thanks & Regards,
Nitish Subudhi

Thanks & Regards,
Nitish
Blackberry and PhoneGap Developer

------------------------------------------------------------------------------------------------
- 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"
Regular Contributor
Posts: 101
Registered: ‎03-18-2013
My Device: Dev Alpha B & PlayBook 32
My Carrier: mobinil

Re: How to keep specific splash screen images for portrait and landscape mode. for example I have one 360x640 image for portarit and another 640x360 image for landscape