I have a android application that is trying to use the new NotificationListenerService class from api 18. I have created my own service class that inherits from this class a
After installing a app configured properly, you should grant it.
You can find the name of the app at "Settings > Security > Notification access", then be sure the check box is filled. :)
After debugging multiple times to a device, renaming your NotificationListener class helps fix the problem. It doesn't matter what you rename it to, just changing it to something different from the previous name. I've always had to do this over and over again.
After many hours of researching, I finally found sample code that actually works:
https://github.com/yihongyuelan/NotificationListenerServiceDemo