1*90c8c64dSAndroid Build Coastguard Worker 2*90c8c64dSAndroid Build Coastguard Workerpage.tags="ActiveNotifications" 3*90c8c64dSAndroid Build Coastguard Workersample.group=Android N Preview 4*90c8c64dSAndroid Build Coastguard Worker@jd:body 5*90c8c64dSAndroid Build Coastguard Worker 6*90c8c64dSAndroid Build Coastguard Worker<p> 7*90c8c64dSAndroid Build Coastguard Worker 8*90c8c64dSAndroid Build Coastguard WorkerNotifications can now be grouped in Android N. Since Android M, the 9*90c8c64dSAndroid Build Coastguard WorkerNotificationManager can tell you how many notifications your application 10*90c8c64dSAndroid Build Coastguard Workeris currently showing. This sample demonstrates how to use these APIs 11*90c8c64dSAndroid Build Coastguard Workertogether for a nicer user experience when an app may have multiple 12*90c8c64dSAndroid Build Coastguard Workernotifications. To get started, press the "add a notification" button. 13*90c8c64dSAndroid Build Coastguard WorkerIf you add more than one notification a notification summary will be 14*90c8c64dSAndroid Build Coastguard Workeradded. When a notification is being canceled, the count gets updated 15*90c8c64dSAndroid Build Coastguard Workervia a PendingIntent. 16*90c8c64dSAndroid Build Coastguard Worker 17*90c8c64dSAndroid Build Coastguard Worker </p> 18