How To Create Multiple Local Notifications In Android
In my android app I need to show multiple local notifications on a particular day at different time intervals,I used alarm manager and broadcast receiver to do for one notification
Solution 1:
Each Notification must have its own Notification ID.
Your problem is here:
notificationManager.notify(0, notification);
Specifically, the "0" is the ID of the Notification. If you do not provide a different ID, Android will think you are simply updating the Notification that already exists.
public void notify (int id, Notification notification)
Post a notification to be shown in the status bar. If a notification with the same id has already been posted by your application and has not yet been canceled, it will be replaced by the updated information.
You could try something like this:
privateint mCounter = 0;
...
notificationManager1.notify(++mCounter, notification1);
Post a Comment for "How To Create Multiple Local Notifications In Android"