2

I use eclipse IDE for develop android applications.

I want to show notification badge on android app icon for all android devices but i did not find solution for that. How does i implement this?

Mayuri Joshi
  • 164
  • 1
  • 2
  • 12
  • 2
    possible duplicate of [How to display count of notifications in app launcher icon](http://stackoverflow.com/questions/17565307/how-to-display-count-of-notifications-in-app-launcher-icon) – Adhikari Bishwash Sep 09 '15 at 05:06

1 Answers1

5

An Android library named ShortcutBadger makes your android app showing the count of unread messages as a badge on your app icon. Try it.

https://github.com/leolin310148/ShortcutBadger

Using android-viewbadger lib you can easily create badge on any given android view at runtime without having to cater for it in layout.

https://github.com/jgilfelt/android-viewbadger

Priyank Patel
  • 12,244
  • 8
  • 65
  • 85
  • For use this lib i need to add repositories and dependencies. its maven based project and i use eclipse. In which file i add this in eclipse project? – Mayuri Joshi Sep 09 '15 at 05:09
  • You can open it in android studio. – Priyank Patel Sep 09 '15 at 05:14
  • I tried ShortcutBadger and it runs successfully but my project is eclipse project and i want solution based on eclipse project. Also this is for limited device. Is that any another solution for eclipse project and for all android devices? – Mayuri Joshi Sep 10 '15 at 07:27
  • look at this : [Importing Android Studio projects into Eclipse](http://www.101apps.co.za/articles/importing-android-studio-projects-into-eclipse.html) – Priyank Patel Sep 10 '15 at 07:56
  • converting in eclipse its also works but is that any solution for other devices? – Mayuri Joshi Sep 10 '15 at 12:44
  • I think this is only available solution so far I know. – Priyank Patel Sep 10 '15 at 12:56
  • hi patel, i had a similar doubt, this is only working on sms notifications or manually set the badges – Vijay Jul 05 '17 at 10:05