Blogg

Android: How to add a notification badge to the app icon on Sony Xperia devices

While working on my Android app Wilma, I wanted to show a notification badge on the app launcher – like Facebook does, for example. Searching for how to do this does not give many results – most say it’s impossible or that Facebook must use a widget or a whole bunch of activity aliases. This is not true, however, since the stock email app does it too, with the same look to it. After having seen Daniel Ochoa’s solution for Samsung’s launcher, which uses a BadgeProvider to handle the notification badges, I set out to do the same for Sony’s Xperia Home.

Läs mer