BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 10-05-2009, 03:13 AM   #1 (permalink)
Thumbs Must Hurt
Join Date: Mar 2007
Location: India
Model: 8100
Carrier: Airtel
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default set application focus icon

Please Login to Remove!

Hello all,

I am using JDE 4.2.1. And I am trying to set icon when application get focus.

I have two projects under MyApplication .

1) original project having public static void main in it.

contain logic of whole application.

properties are:

project type; cldc application

selected check box for system module.

selected check box for auto run on startup and in drop down below (0(first;runtime code only).

2) is alternate entry point and doesnt have any files in that.. and its properties are

; Project type: alternate cldc application entry point.

alternate entry point for : original proejct mention

the aruments passed to main : gui

This what I have done.

the main of original is as below

public static void main(String[] args){

if(args != null && args.length > 0 && args[0].equals("gui")){

AppLauncher appLaunch = new AppLauncher();



try {

HomeScreen.updateIcon(Bitmap.getBitmapResource(mai nIcon);

HomeScreen.setRolloverIcon(Bitmap.getBitmapResourc e(rollOverImage);

} catch (Exception ex) {

System.out.println(" main in app launcher "+ex.toString());




This is what I did..and Im getting,
net.rim.device.api.system.UnsupportedOperationExce ption

What should I do?

Can anybody please help me. Even after this.. I wont able to launch the application.

Sorry for posting the same question again.

Is there any way to set the application icon at runtime without creating alternat entry point. The solution of previous post is not working as the icon chanegs only when i launch the application. Is their anyother way.

Crazy for BlackBerry
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

APPLE 630-0895-B  VRAM 128K X 8 BOARD CARD VINTAGE pictureAPPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD >
APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD > picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.