BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-28-2007, 09:23 AM   #1 (permalink)
New Member
 
Join Date: May 2007
Model: 8707
PIN: N/A
Carrier: vodafone
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default task manager icon does not change

Please Login to Remove!

I have a rim application that needs to change application icon during installation (OTA). The icon image file is located in a resource cod-file that can differ in different installations. I don't want to make a new build for every brand and sign it, I just want to change the resource cod.
It works fine to change the application icon but it does not change in the running applications list. Is there some way to change this icon?

regards
/jol
Offline  
Old 08-28-2007, 10:12 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i suspect the application manager gets the icon using something similar to:

public Bitmap getModuleIcon(String moduleDescriptor){
try{
int handle = CodeModuleManager.getModuleHandle(moduleDescriptor );
ApplicationDescriptor[] appDescriptors = CodeModuleManager.getApplicationDescriptors(handle );
ApplicationDescriptor descriptor = new ApplicationDescriptor(appDescriptors[0], null, null);
Bitmap returnBitmap = descriptor.getIcon();
return returnBitmap;
}catch(Exception e){
return Bitmap.getBitmapResource("default.png");
}
}

might explain why it doesn't reflect changes made using the HomeScreen class if that's what you're doing, sorry if i've misunderstood.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 08-30-2007, 02:15 AM   #3 (permalink)
New Member
 
Join Date: May 2007
Model: 8707
PIN: N/A
Carrier: vodafone
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, Im using HomeScreen to change it. Is there a was to change the ApplicationDesciptor?

/jol
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





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