Search code examples
imageblackberryicons

BlackBerry:Image to be displayed on application displayed in simulator


I have created a BB application which gets displayed in the "Downloads" menu in the simulator. I want to display image on the application icon. I have no idea about how to do this.

Can any body please give me some hint or provide a code using which I can display image on my application which is displayed in the BB simulator.


Solution

  • You can programmatically set the icon using the HomeScreen class:

    
    HomeScreen.updateIcon(Bitmap.getBitmapResource("SomePng.png"));
    HomeScreen.setRolloverIcon(Bitmap.getBitmapResource("SomeOtherPng.png"));