Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show android notification action buttons expanded by default

Is there a way to show action buttons in notification expanded by default? I use ongoing notification to control traning process in my app. I want controling buttons such as "Stop" and "Pause" to be visible right after notification appeared in the notification area.

Collapsed buttons by default

Want the buttons to be expanded

like image 595
Oleksandr Albul Avatar asked Nov 16 '17 08:11

Oleksandr Albul


1 Answers

You can't expand notification. The only solution is, set Priority Max, then the top of the notification list where it would be expanded. And it depends on the device as well.

mBuilder.setPriority(Notification.PRIORITY_HIGH)
like image 133
Anjal Saneen Avatar answered Oct 06 '22 09:10

Anjal Saneen