How to add icon icon to application icon?

how to add the number of icons to the application icon on the desktop, for example, the built-in gmail application, the facebook application. I can work with Samsung and Sony devices. But others, such as Motorola, Micromax, HTC, LG, do not install the Badge.

So how to set the number of icons for all Android devices?

+7
android notifications badge
source share
2 answers

It’s currently not possible to target all Android devices, only some.

Some manufacturers (like Samsung) have included this functionality in their own Android launchers. Also, some third-party launchers (e.g. Nova Launcher) have included an API to accomplish this.

Android Android does not currently offer this feature on a standard launcher.


I just saw this is a duplicate:

  • Is there a way to add an icon to an Android application icon?

There are many other posts related to this type of thing:

  • How does Facebook add icon numbers to an Android app icon?
  • https://stackoverflow.com/questions/18205569/does-samsung-modifies-its-android-roms-to-have-badges-on-email-and-sms-icons?rq=1
  • adding an icon icon to an application icon on an Android phone
  • How to interact with BadgeProvider on Samsung phones to add an account to the application icon?
  • How to add icon icon / application counter to Sony Xperia devices?
  • How to make an application icon on an android?
  • How to display the number of notifications in the application launcher icon

Here you can find additional information.

+14
source share

You can use the library that will bring you this opportunity.

ShortcutBadger is one of them supporting many launchers.

To use this library, you can add it to the gradle assembly dependency as follows:

dependencies { compile 'me.leolin:ShortcutBadger: 1.1.4@aar ' } 

And add the icon as:

 ShortcutBadger.applyCount(context, badgeCount); 
+6
source share

All Articles