Android notifications actions without opening the app

Shashika picture Shashika · May 6, 2013 · Viewed 19.8k times · Source

I want to implement a notification action in JB. But it shouldn't open the app. The behaviour is similar to the Gmail apps delete notification action. How can I do this?

Thanks in advance, Shashika

Answer

Shashika picture Shashika · May 8, 2013

After some research I managed to achieve this using a broadcast receiver. I posted the example code here. http://shashikawlp.wordpress.com/2013/05/08/android-jelly-bean-notifications-with-actions/