Search code examples
androidnotificationsandroid-notificationsnotification-action

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


Solution

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