To retrieve incoming notification details from whatsapp in android

How can I retrieve the name, message and time for any incoming notification on "whatsapp". Basically, I want to add up all incoming notification details in an array list. Please help me to get the explained code for the same.

Answers


You are trying to catch a 3rd party notification which requires a little more work. This SO question might help you to the right track.

How to get notified when a notification is notified


I was able to do this using Accessibility Service . Using this, you can listen to all notification on the notification bar. I listened to application-specification by adding the package name to the Accessibility Service service info , which in this case was com.whatsapp. I couldn't read the messages, but I get notified whenever a message arrives.

http://developer.android.com/training/accessibility/service.html#create


Need Your Help

Session checking using javascript in jsp

java javascript jsp session servlets

I have done session activation and deactivation using servlets using

Clean urls in php with / at the end

php regex .htaccess mod-rewrite clean-urls

I am trying to figure those clean urls out again.