0

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

user701735
  • 145
  • 1
  • 5
  • 13
  • Duplicate of http://stackoverflow.com/questions/5569695/android-is-it-possible-to-update-a-imageview-imagebutton-with-a-number-to-show-t – Vincent Mimoun-Prat Apr 11 '11 at 07:52
  • Did you ask this previously http://stackoverflow.com/questions/5569695/android-is-it-possible-to-update-a-imageview-imagebutton-with-a-number-to-show-t ? – Jim Blackler Apr 11 '11 at 07:54
  • ya but that was for inside application but now i wanted to know about on home screen please guide me – user701735 Apr 11 '11 at 08:02
  • I added my answer in the thread pointed by MarvinLabs with an example, dont know if it's the standard way to do it but it works. – ccheneson Apr 11 '11 at 14:46

1 Answers1

0

You will need to implement a 1X1 widget.

Android App Widget Resource

James
  • 2,346
  • 1
  • 16
  • 18
  • @user701735 may u please highlight or share how else u achieved this? Might be of help.Thanks – JWL Feb 15 '13 at 10:01