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
Highlighted
New Developer
Posts: 6
Registered: ‎02-10-2009
My Device: Not Specified

Using Wallpaper for Application Background

I'm using the 4.7 JDE and Blackberry Storm... I'm trying to find a way to use the desktop wallpaper as a background of my application... I don't want to change it, just access it.

 

Is this possible?

New Developer
Posts: 6
Registered: ‎02-10-2009
My Device: Not Specified

Re: Using Wallpaper for Application Background

Perhaps there is a way to set the backgroundColor to transparent? Or load the wallpaper bitmap via bytes through some obscure function...

 

Please help.

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Using Wallpaper for Application Background

There are no APIs in the BlackBerry API set that return the user's current wallpaper.  You could ask the user to browse to a background image of their choice and use it as your screen's background.

 

How To - Use a background image in application screens 
Article Number: DB-00498

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 6
Registered: ‎02-10-2009
My Device: Not Specified

Re: Using Wallpaper for Application Background

Thanks. I don't understand why you can set the background image programmtically, but not retrieve it.

 

Is there any documentation on how to ask the user to browse for a background image?

 

Thanks,

Brian

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Using Wallpaper for Application Background

Have a look at the fileexplorerdemo included with the BlackBerry JDE for an example.

 

However, please note that third party applications are not able to access the sample media files included with the BlackBerry handheld software.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Developer
Posts: 266
Registered: ‎04-01-2009
My Device: Not Specified

Re: Using Wallpaper for Application Background

Can I not open one of the sample wallpapers (bridge, passage..) from the file:///store/samples/pictures/ ?

 

What workaround is there to access one of the system wallpapers?