PDA

View Full Version : Changing Icon on Push Event


dennis_boerger
02-14-2007, 10:23 AM
How can I change an application icon (on the desktop) when a push event happens? Is there any function to do that?

Thanks in advance
Dennis

bdowling
02-14-2007, 10:43 AM
You can set the icon with the ApplicationManager, and you can add a listener for push events

dennis_boerger
02-14-2007, 10:50 AM
where can I find the application manager?

Any Code samples? ... I am new to BB programming.

bdowling
02-14-2007, 11:41 AM
The class ApplicationManager. Take a look at blackberry.com/developer - they have loads of good documents and samples.

dennis_boerger
02-14-2007, 12:03 PM
I checked the ApplicationManager class but I could not find any method to set an Icon!?

Skipper_Joe
02-15-2007, 03:58 AM
You can get ApplicationDescriptor using methods in ApplicationManager.
Then you can create new ApplicationDescriptor using one of existing descriptors and define new icon for this new descriptor.

See BlackBerry_Application_Developer_Guide_Volume_2, chapter "Managing applications"

dennis_boerger
02-15-2007, 04:13 AM
don't I have two application icons then? Or will the new descriptor override the old application?

bdowling
02-15-2007, 04:49 AM
Have a look at the document :)

You can get the application descriptor for the current application (your one - the one that is running) and set the icon.

BlackBerry.com has an article on listening for pushed data here: BlackBerry (http://www.blackberry.com/developers/developerlabs/listeningfordata.shtml)

dennis_boerger
02-15-2007, 09:34 AM
I used the applicationmanager. They probelm is when you use the ApplicationManager, that a code signing by RIM is requiered!!

jfisher
02-15-2007, 10:38 AM
if you're going to develop seriously for bb then you're going to have to register for codesigning.