0

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.

halfer
  • 19,824
  • 17
  • 99
  • 186
user469999
  • 2,101
  • 4
  • 24
  • 30
  • you want to display image as application icon or display image ON APPLICATION ICON? Just like iPhone notification icon.. – Prasham Dec 31 '10 at 05:12
  • i want to display image as application icon.And when i click on it my application should get loaded – user469999 Dec 31 '10 at 07:44
  • If I search stack overflow for "+blackberry +icon" the top result is: http://stackoverflow.com/questions/1807600/blackberry-how-to-set-icon-for-application and the first answer there is what you need. This is a duplicate question. – Michael Donohue Dec 31 '10 at 10:57
  • Thanks Michael Donohue :) And sorry for posting duplicate question :( – user469999 Dec 31 '10 at 12:20

1 Answers1

1

You can programmatically set the icon using the HomeScreen class:


HomeScreen.updateIcon(Bitmap.getBitmapResource("SomePng.png"));
HomeScreen.setRolloverIcon(Bitmap.getBitmapResource("SomeOtherPng.png"));
Jonathan Fisher
  • 380
  • 1
  • 5
  • Thank You so much jonathan.i have tried the above code.Its working fine.I appreciate ur help dear.Thanks again – user469999 Jan 15 '11 at 04:13