Reputation: 267
Hai i want to create number notification dynamically,i can able to create single notification only.Am searching and get answer in this forum How to create Multiple statusbar Notifications in android but here the notification is mentiones.but i need dynamic multiple notification depend on number.
Suppose i have number=1 i need 1 notification,if number=2 i need 2 notification how to do this.kindly guide me?See my image if anybody dont understand my question kindly ask me?
Upvotes: 1
Views: 461
Reputation: 22064
The link above shows how to send a notification:
mNotificationManager.notify(id, notifyDetails);
And set the id to be different each time, for instance if you want 5 notifications, you could try something like:
for(int id = 0; id < 5; id++){mNotificationManager.notify(id, notifyDetails);}
Upvotes: 1