we have a feature to update the app icon with the new pending messages for the user by showing a small number on the right-top corner of the icon and similarly I would like to know if we have method to update a ImageView/ImageButton in android(Here I am looking to update the icon on the home screen ).
For example, the pic shows the red background icon with the number of messages pending to be read in red and if there are no messages it shows with a gray background.
how can i do this ? if possible please provide smaple code