Search code examples
androideclipsenotificationsowner

How to get the name of the Application that originated the Notification


I believe every Notification sent to my device has a source, and a code.

I wish to know how to get The name of the application that originated the notification sent to my device, i.e. i want to do things if whatsapp send me a Notification, but how do i know that the Whatsapp app send that notification? Basically that's it.

Im making Android apps with Eclipse in java.


Solution

  • This should have really been a comment. Take a look at: Detect a new Android notification

    It's exactly what you are looking for.