且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建Android应用程序通知图标徽章(如iPhone)

更新时间:2022-12-22 11:50:04

这是实际上是从马克·墨菲回答:

This is actually an answer from Mark Murphy:

对于大多数手机上,您使用的通知对象的号码字段。   看这里:    http://github.com/commonsguy/cw-android/tree/主/通知/ Notify1 /

For most phones, you use the number field of the Notification object. See here: http://github.com/commonsguy/cw-android/tree/master/Notifications/Notify1/

现在,有几部电话由一个主要的设备制造商有   一个bug,其中数场被忽略。我努力让   他们来修复它。所以你不能完全依赖于红色泡沫是   那里,虽然这将是在大多数手机上。

Now, there are a few phones by one major device manufacturer that have a bug, whereby the number field is ignored. I am working on getting them to fix it. So you can't absolutely rely on that red bubble being there, though it will be on most phones.