ShortcutBadger: Add Unread Notification Badge Count to Android App Icons

The ShortcutBadger makes your Android App show the count of unread messages as a badge on your App shortcut

ShortcutBadger: Add Unread Notification Badge Count to Android App Icons


If you're developing an Android application and want to display unread notification counts directly on your app icon, ShortcutBadger is one of the most popular open-source libraries available. It allows Android apps to show badge counts on supported launchers, helping users quickly identify unread messages, notifications, and pending updates.

What is ShortcutBadger?

ShortcutBadger is an Android library developed by Leo Lin that enables developers to display notification badge counts on app launcher icons. Since Android does not provide a universal badge API across all devices and launchers, ShortcutBadger implements manufacturer-specific and launcher-specific solutions to provide broad compatibility.

Key Features

  • Display unread message counts on Android app icons
  • Support for multiple Android manufacturers and launchers
  • Easy integration with Android Studio projects
  • Lightweight and open-source
  • Free to use
  • Supports both stock and third-party launchers

Installation

Add the ShortcutBadger dependency to your Android project:

dependencies {
    implementation "me.leolin:ShortcutBadger:1.1.22@aar"
}

How to Show Badge Count

To display a notification badge on your app icon:

int badgeCount = 5;
ShortcutBadger.applyCount(context, badgeCount);

This will attempt to show the number "5" on supported launchers.

How to Remove Badge Count

To clear the badge count:

ShortcutBadger.removeCount(context);

Or:

ShortcutBadger.applyCount(context, 0);

Supported Launchers

ShortcutBadger supports the following Android launchers:

LauncherSupport Status
SonySupported
SamsungSupported
LGSupported
HTCSupported
XiaomiSupported
ASUSSupported
ADW LauncherSupported
Apex LauncherSupported
Nova LauncherSupported
HuaweiNot Fully Supported
ZUKSupported (v1.1.7+)
OPPONot Fully Supported (v1.1.10+)
EverythingMeSupported
ZTESupported
KISS LauncherSupported (v1.1.17+)
LaunchTimeSupported (v1.1.18+)
Yandex LauncherSupported

Download: ShortcutBadger

Important Notes

  • Android does not have a single universal badge API.
  • Badge support depends on the device manufacturer and launcher implementation.
  • Some manufacturers, such as Huawei and OPPO, only provide partial support.
  • Results may vary depending on Android version and launcher updates.

Why Use ShortcutBadger?

ShortcutBadger remains one of the easiest and most widely used solutions for implementing unread notification badges on Android applications. With support for numerous Android launchers and manufacturers, it provides developers with a simple way to improve user engagement and notification visibility.

Conclusion

If you want to add unread message counts or notification badges to your Android app icons, ShortcutBadger is an excellent solution. It offers broad launcher compatibility, easy implementation, and active community support, making it one of the best choices for Android badge notifications.

COMMENTS

Name

News,124,Phones,54,Tips,47,Updates,34,
ltr
item
SamFlux: ShortcutBadger: Add Unread Notification Badge Count to Android App Icons
ShortcutBadger: Add Unread Notification Badge Count to Android App Icons
The ShortcutBadger makes your Android App show the count of unread messages as a badge on your App shortcut
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVy6Iav8yI-HNjjkZVu3YQuv27nYgB_z1Nqd_JUyJrcVkRh0ilw0DaKzmId2XNE9xSTlb3DnDKzDhp391N4dFNNX3X-3KT4avs86T8xQGq2PUYkM7sx7iDpynKxXZS09HRH4CQ7ming61WCTOk8cgIESsIOJcy2VYIDckTJi01MtoUasYvRA5HFdX5A75S/s1600/ShortcutBadger.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVy6Iav8yI-HNjjkZVu3YQuv27nYgB_z1Nqd_JUyJrcVkRh0ilw0DaKzmId2XNE9xSTlb3DnDKzDhp391N4dFNNX3X-3KT4avs86T8xQGq2PUYkM7sx7iDpynKxXZS09HRH4CQ7ming61WCTOk8cgIESsIOJcy2VYIDckTJi01MtoUasYvRA5HFdX5A75S/s72-c/ShortcutBadger.png
SamFlux
https://www.samflux.com/2026/07/shortcutbadger-add-unread-notification.html
https://www.samflux.com/
https://www.samflux.com/
https://www.samflux.com/2026/07/shortcutbadger-add-unread-notification.html
true
9122168116517482787
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content