I have an android APP, with a lot of activities.
In the login activiti of my app, i start a notification icon in the status bar, and it is fixed there until my app stops. Ok, it works.
But now i need one more thing, i need to changue the icon dynamically, programatically, with a service of my app. How can i do it?
How can i access to the notification icon of my app and then change the icon?
I would appreciate code examples to illustrate how to achieve this.
Just call notify()
again on NotificationManager
with a new Notification
but the same unique ID as you used for the first one. It will replace your icon of the existing Notification
(or display the new Notification
if the user cleared the first one).