View Single Post
Old 12-11-2009, 02:59 AM   #1 (permalink)
streamh
Thumbs Must Hurt
 
Join Date: Jun 2007
Model: 8800
PIN: N/A
Carrier: GPRS
Posts: 68
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How can I get the correct icons for the system applications?

Please Login to Remove!

Hi, all:

I try to get the systems icons, such as browser, message, but can not get the correct ones? What's the problem?

Code:
.....
_appm = ApplicationManager.getApplicationManager();
ApplicationDescriptor[] appdes = _appm.getVisibleApplications();
int tot_app = appdes.length;
for (int i = 0; i < tot_app; i++)
{
    ApplicationDescriptor aptor = appdes[i];				
    Bitmap _icon = appdes[i].getIcon();
    ..........				
}
but the _icon is not the same with the home screen one, so what's the problem with the code?

Thanks very much!
Offline   Reply With Quote