i am developping an application that has chat&message support. I need to know weather it is applicaple on BB OS 4.5 to set a star icon on application icon as in messages application .
You can do that. You need to have four images for the icons. They are
Once you have that use the following code
if (unReadChatMessages> 0)
{
appIcon = Bitmap.getBitmapResource("app_alert.png");
rolloverIcon = Bitmap.getBitmapResource("app_rollover_alert.png");
// turn on the LED
if(LED.isSupported(LED.LED_TYPE_STATUS))
{
LED.setState(LED.STATE_BLINKING);
LED.setConfiguration(100, 1000, LED.BRIGHTNESS_100);
}
}
else
{
// use default icons...
appIcon = Bitmap.getBitmapResource("app.png");
rolloverIcon = Bitmap.getBitmapResource("app_rollover.png");
// Turn off LED...
if(LED.isSupported(LED.LED_TYPE_STATUS))
{
LED.setState(LED.STATE_OFF);
}
}
// Try to set the icons
HomeScreen.updateIcon(appIcon, 0);
HomeScreen.setRolloverIcon(rolloverIcon, 0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With