Android: new information replace old information in notification -


from documenation of notificationmanager in android:

public void notify (int id, notification notification) post notification shown in status bar. if notification same id has been posted application , has not yet been canceled, replaced updated information.

it replaced updated information. 

i don't want old information replaced, want both notifications. nb: each notification has own id:

notificationmanager.notify(0, notification); notificationmanager.notify(1, notification); 

how this?

stack notifications

if app creates notification while of same type still pending, avoid creating altogether new notification object. instead, stack notification.

a stacked notification builds summary description , allows user understand how many notifications of particular kind pending.

http://developer.android.com/design/patterns/notifications.html


Comments