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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel
Accepted Solution

How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

How to set or keep a background image  in my app at the start of the application i.e after click on the app icon.

 

 

I have developed a BB 7.0 OS  HTML5/ web app  in which I want to include background image .

 

 

Please guide me.

Please use plain text.
Developer
miamon
Posts: 142
Registered: ‎08-17-2008
My Carrier: Vodafone

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

Take a loot to rim:loadingScreen on config.xml  http://developer.blackberry.com/html5/documentation/rim_loadingscreen_element_834680_11.html

Josep Maria
Please use plain text.
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

[ Edited ]

Ok thank you miamon   where should we write this code and what should be the dimensions of the  background image like

 

256*256  or 480*120 etc ?

 

 

I want the background to fit to the screen  .

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
My Carrier: Bell

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

The image will scale to fit the screen. I would aim for something close to the resolution of the devices you are targeting, and even a little larger. Scaling down of images generally tends to look better than having to scale up.

 

The rim:loadingScreen element should be defined in your config.xml.

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

Ok miamon and oros I will  check the output and update you.   But stil what should be the idela size of the background if any ?

 

 

 

Please use plain text.
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

You code is working miamon thanx oros also.

Please use plain text.
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

MY background image should  tilt for landscape and portrait mode accordingly. How ?

Please use plain text.
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

Ok done  with   

 

 

 

<rim:smileysurprised:rientation mode="auto"/>

Please use plain text.
Trusted Contributor
srk2012
Posts: 233
Registered: ‎12-04-2012
My Carrier: Airtel

Re: How to set or keep a background image in my app at the start of the application i.e after click on the app icon.

Hi oros and miamon pls go thru my earlier post also

 

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/I-have-a-developed-a-Live-TV-app...

 

Ask any doubts if  u have . I want  you to edit my main.js    script of my app.

Please use plain text.