How to display multiple notification as a group?

后端 未结 4 1962
面向向阳花
面向向阳花 2021-02-20 11:01

here is my code for notification. it generate a new notification each time

Random random = new Random();
int m = random.nextInt(9999 - 1000);    
Notific         


        
4条回答
  •  孤街浪徒
    2021-02-20 11:36

    Use below give code for your notification manager and increment the count whenever a new notification received.

    mNotificationManager.notify(count, mBuilder.build());
    

提交回复
热议问题