I have seen in android native Email application that it updates the icon by showing how many new mails are there ?
Is it a service that updates the icon or is it a process who does it ?
Can someone tell me which file does this change ?
I have seen in android native Email application that it updates the icon by
Share
It cannot be done from the application. There are two ways that I know of to achieve that:
A widget that updates itself and changes its icon (but it’s not a regular icon to an app)
Some launchers do that on regular icons (e.g. GoLauncher) but they do that from the launcher application code itself: they have a plugin that checks for pre-defined services (mail, Gmail, text messages, missed phone calls, etc.) and then draw a little notification on top of the application icon.