我已经能够在 Android 模拟器上成功显示通知数量。但是,当我在实际的 Android 手机上使用它时,它不显示任何内容。关于为什么会有所不同有什么建议吗?
最佳答案
首先尝试将其设置为数字 1,然后设置更高。来自这里的建议:http://developer.android.com/guide/topics/ui/notifiers/notifications.html
number field
This value indicates the current number of events represented by the notification. The appropriate number is overlaid on top of the status bar icon. If you intend to use this field, then you must start with "1" when the Notification is first created. (If you change the value from zero to anything greater during an update, the number is not shown.)
关于安卓通知栏编号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3042189/