android – Click outside the actions of a Notification


I would like to know if there is any way inside an Ongoing Notification so that when clicking outside the buttons but still in the notification, it performs a predetermined action?


After declaring a layout XML, give it an ID, and use it with the purpose of action or an intent, so when clicked it will be able to open a UI or execute some command

Scroll to Top