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
Contributor
dblanco
Posts: 21
Registered: ‎07-24-2012
My Device: torch 9800
My Carrier: movistar

Background image in application screens

For a sample workspace that applies a background image to a screen, download the backgroundImage.zip file from this post:

 

http://supportforums.blackberry.com/t5/Java-Development/Use-a-background-image-in-application-screen...

 

But I get the error: java.lang.NullPointerException

 

The simulator is 9550 with OS v5.0.0.535

 

What is missing or wrong to place a background image? Thanks

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: Background image in application screens

[ Edited ]

Which line throws that error?

 

Just tested, code appears to work to me!

Please use plain text.
Contributor
dblanco
Posts: 21
Registered: ‎07-24-2012
My Device: torch 9800
My Carrier: movistar

Re: Background image in application screens

[ Edited ]

Sorry, you are my first steps with java for blackberry. Dialog box appears with the message mentioned and ok. How do I debug to find the line of the problem?

 

You may not find the image files? They are located in the folder res. In case you are looking where is the java file, also copied to src / mypackage getting the same error.

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: Background image in application screens

Are you using Eclipse or JDE. 

Please use plain text.
Contributor
dblanco
Posts: 21
Registered: ‎07-24-2012
My Device: torch 9800
My Carrier: movistar

Re: Background image in application screens

Eclipse! Thanks

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: Background image in application screens

Please use plain text.