Don Rhummy
Don Rhummy

Reputation: 25830

How do I combine all my notifications into one expandable one in API 14+?

My app might have multiple notifications for different events and instead of showing 4 notifications, I want to combine them like GMail does. How do I do this? Is this possible in API 14 or was this added in JellyBean?

Upvotes: 3

Views: 1437

Answers (1)

dsandler
dsandler

Reputation: 2481

The large notification you're thinking of (specifically InboxStyle) was added in Jelly Bean, but there's nothing stopping you from aggregating multiple pieces of information in a single notification on earlier versions of Android (you just won't be able to fit as much in). Use NotificationCompat to create a Notification that has a nice bigContentView for JB+ devices and a more concise summary version on older devices.

Upvotes: 3

Related Questions