Android: group notification in status bar but not in notification list

Does anyone know if there is a way to group a notification in the status bar, but not in the notification list?

I want to show only one icon in the status bar, but when the user drags the notification list, it should be several notifications with different intentions.

As I understand it, it is only possible to group both notifications in both places or to create several notifications that will trigger several notifications in the status bar. Is that the case?

+4
source share
1 answer

As I understand it, it is possible to group both notifications in both places, or to create several notifications that will trigger several notifications in the status bar. Is that the case?

Yes, but you can create as a custom Notification complex, as you want, through the contentView field on Notification . These are RemoteViews , better known as what you use to render a home screen app widget. Thus, although there can be only one entry in the notification box for you, you can have several buttons, each of which launches a separate PendingIntent .

+8
source

All Articles