views:

549

answers:

2

I am trying to develop a Blackberry app that will change the Home Screen background image(not the application background image) periodically (just like WallPaper changer for windows) based on configurable time parameter.

Is it possible to change the HomeScreen background programatically. is there any API to do that..?

+4  A: 

A BlackBerry device application can use net.rim.blackberry.api.homescreen.HomeScreen.setBackgroundImage(String uri) (Since: JDE 4.7.0) with an image file that resides in flash memory or a microSD Card to set the background image. A typical format for the URI is "file:///store/home/user/pictures/file.jpg." Invoking net.rim.blackberry.api.homescreen.HomeScreen.setBackgroundImage(String uri) will override images that other applications have set.

Vivart
A: 

Hi All, In BlackBerry storm. Generally, it has two homescreens. Is there any way programatically I can detect the two homescreens. I am stuck in this. The first home screen is where 1or 2 or 3 rows of icon appears and which shows the background image(wallpaper). The second homescreen appears after clicking on the first homescreen where 4 rows of icon appears(including download icon, game icon, setup icon etc..) I need to differenciate between these two screens.

Pls show me some way. Any clue or any idea will be fruitful to me.

My thinking : if I can explore set focus option or count the number of icons in both screens or can identify the wallpaper.


SUBHA

Subha