--- Tony Yat-Tung Cheung <[EMAIL PROTECTED]>
wrote:
> I am wondering if a program can change its ICON (for
> displaying in the  built-in launcher)
> programmatically during run-time.
> 
> For example, I can potentially change my program
> icon to be more Christmas when Christmas is
> arriving.
> 
> How can do we this?
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
> 

I tried to do this by re-writing the application's
icon resource, but the problem I had is getting the
launcher to update its idea of what the icon should
be. Apparently the launcher caches the app icons
itself, and a soft reset is needed to force it to
update.

(BTW, this was for an app which was installed in a
default configuration, and determined which flavor it
was based on data downloaded from the desktop).

Another way to get the same effect might be to have
several shell apps, each with a different app icon,
launch the (hidden) app that does the real work. If
all but one of the shell apps' databases have their
hidden flags set, then the user only sees one of the
shell apps in the launcher at a time. I haven't had
time to explore this approach, but it might be worth
pursuing.

- Paulo Raffaelli
Senior Consulting Engineer



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to