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();

appLaunch.enterEventDispatcher();

}else{

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.

Thanks
__________________
Crazy for BlackBerry
Offline  
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

VINTAGE CROUSE HINDS CBG 194 FITTINGS DATED DEC 1974
$11.5
VINTAGE CROUSE HINDS CBG 194 FITTINGS DATED  DEC 1974  pictureDEC / AMI 304E 21-15542-01 vintage ceramic IC *NEW* UIC p/n 40278101
$60.0
DEC / AMI 304E 21-15542-01 vintage ceramic IC *NEW* UIC p/n 40278101  pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$71.81
Vintage SIGNODE Crimping W14 Tool  17.5SET/LOT 3x GOLD 6" WAFERS: MICROMODULE SYSTEMS GEMINI CPU OLD VINTAGE IC DEC MCM
$229.95
SET/LOT 3x GOLD 6VTG Smead BLUE Jan - Dec Index Card Guides No. 621-12 Months 6" x 4" Dividers
$11.99
VTG Smead BLUE Jan - Dec Index Card Guides No. 621-12 Months  6






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