Search code examples
androidnotificationsandroid-4.2-jelly-bean

Android notifications actions without opening the app


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


Solution

  • 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/