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

Java Development

Reply
New Developer
Posts: 22
Registered: ‎12-01-2008
My Device: Not Specified

How to set background image on 4.6.0 (bold)

Hi, All

 

In 4.6.0 Bold emulator (4.6.0.12 JDE), I am using the following statements (as written in developer guide) in our main screen class which extends the fullscreen:

 

Background imageBackground =        BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("bg_home.png"));            
      this.setBackground(imageBackground);   

 

But it didn't work for rendering the image as the background. Anyone who gets this working can provide some hints about how to make this work?

 

 

Thanks

 

Nelson

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to set background image on 4.6.0 (bold)

Try overriding FullScreen.paintBackground() in your screen class.