Android: How to check if an application has new inner notifications (ticker)?

Viewed 186

I don't want to read status bar notifications, I already know how to do that using the following tutorial:

http://www.androiddevelopersolutions.com/2015/05/android-read-status-bar-notification.html

Majority launchers shows a ticker (red circle or number) indicating that an application (As Facebook, Telephone, Messages, etc.) has un-previewed notifications, which is not available in Notifications Panel.

How to accomplish this? How to find that an application (Using it's package name / Activity Name) has an active inner notifications?

1 Answers

The name of the circle/number is Badge. From Android Developers:

notification badges (also known as notification dots) appear on a launcher icon when the associated app has an active notification

Therefore it seems like the badges will turn up in the NotificationListenerService (as described in your provided link) since they are based on "real" notifications.

Related