I have a notification in my app and I want to perform a custom task on clicking of the action in the notification. I have done this to add a action:
timerNotificationBuilder.addAction(0, "STOP", null /*What to add here ?*/ );
But, I want to stop a handler from running on click of this action. I have only seen to open activities using this. But, how to stop a handler or any custom task?
Thanks
@Sambhav.K , You need to pass Pending Intent in action button like below code
and create new CustomActionReceiver class and do your stuff what you want like below