简体   繁体   中英

Empty red circle in Android notification status bar!

When I have a status bar notification with a number inside, it shows the number fine . But later if I show another notification to replace this one, with no number , it shows an empty red circle . This circle shouldn't be there. How do I remove the red circle? See image here: http://jump.fm/UYHGV

I've already tried:

notification.number = 0;

and

notification.number = -1;

And forget about canceling notifications first. Since there's no way to query the notification service for existing notifications, I can't detect if the previous one needs to be updated. If I would cancel every time I notify, the user will see the status bar flashing once in a while, which is annoying.

Please advise.

Emmanuel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM