user1324068
user1324068

Reputation: 267

How to Create Number of notifications in android Application?

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?

enter image description here

Upvotes: 1

Views: 461

Answers (1)

Carnal
Carnal

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

Related Questions