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


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: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
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.

Developer
Posts: 185
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10
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
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
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  .

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
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.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
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 ?

 

 

 

Highlighted
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
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.

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

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

 

 

 

<rimSmiley Surprisedrientation mode="auto"/>

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