Hi you can use this lib simply.
Support : Sony,Samsung,LG,HTC,Xiaomi,ASUS,ADW,APEX,NOVA,Huawei,ZUK,OPPO
Add :
int badgeCount = 1;
ShortcutBadger.applyCount(context, badgeCount);
Remove :
ShortcutBadger.applyCount(context, 0);
More Related Contents:
- download image from unformatted url [duplicate]
- How to create Android Facebook Key Hash?
- Android/Java — Post simple text to Facebook wall?
- Android post picture to Facebook wall
- XMPP with Java Asmack library supporting X-FACEBOOK-PLATFORM
- SERVER_ERROR: [code] 1675030 [message]: Error performing query
- Add the values on ArrayList in Android [closed]
- How do I set the text of an Android TextView from Java?
- how can I solve “package R does not exist”
- How can I parse a local JSON file from assets folder into a ListView?
- Android: How to Enable/Disable Wifi or Internet Connection Programmatically
- Service discovery failed exception using Bluetooth on Android
- How to render PDF in Android
- Getting NoClassDefFoundError when using common.lang.StringUtils in android java code?
- Detect touch press vs long press vs movement?
- How to programmatically enable GPS in Android Cupcake
- Is there a way to automatically generate getters and setters in Eclipse?
- Android heterogeneous gridview like pinterest? [closed]
- How to execute JavaScript on Android?
- Which JDK version (Language Level) is required for Android Studio?
- Flutter apps are too big in size
- How can I start a new android activity using class name in a string?
- RxJava instead of AsyncTask?
- PDFBox : PDPageContentStream’s append mode misbehaving
- How to activate “Share” button in android app?
- I cant see any FirebaseRecyclerAdapter items on my layout
- Creating an Android Lock Screen App.
- Using MessagePack with Android
- Pass Serializable Object to Pending Intent
- JSONObject.toString: how NOT to escape slashes