Android 通知状态栏中出现空红圈!
当我的状态栏通知中包含数字时,它会显示该数字。但稍后,如果我显示另一条通知来替换这个通知,并且没有编号,它会显示一个空红色圆圈。这个圈子不应该存在。怎样去掉红圈呢?请参阅此处的图片:http://jump.fm/UYHGV
我已经尝试过:
notification.number = 0;
并且
notification.number = -1;
忘记取消通知第一的。由于无法查询通知服务中的现有通知,因此我无法检测前一个通知是否需要更新。如果我每次通知都取消,用户会看到状态栏偶尔闪烁,这很烦人。
请指教。
以马内利
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
希望这会有所帮助 http://code.google.com/p/android/问题/详细信息?id=7891
Hope this help http://code.google.com/p/android/issues/detail?id=7891