How do I add a number to the launcher icon like HTC mail Does?
Does anyone know how to accomplish adding to my application's launcher icon开发者_开发知识库 the circular badge with a number inside of it (indicating number of unread emails) like the HTC mail application does? I know how to do this for notifications, but not for the launcher icon.
To clarify, it's not a widget, but an application icon.
I'm posting Daenyth's answer so I can mark this as answered:
@glenviewjeff: It sounds like custom behavior that HTC has hacked into the OS [launcher].
What you want is a widget, not an icon. Icons are static. You can find out more info here: Introducing home screen widgets and the AppWidget framework
精彩评论