[英]How to show Notification Count on My App Icon on Home Screen in Android
The question is that Android places new alerts in the system wide notification bar while the iPhone places a notification directly over the specific app icon. 问题是Android将新警报放置在系统范围的通知栏中,而iPhone将通知直接放置在特定应用程序图标上方。
So what i have to do is that, i have to show my app icon with notification count received from C2dm receiver same as it is shown in iPhone with red oval showing the count. 所以我要做的是,我必须显示带有从C2dm接收器接收到的通知计数的应用程序图标,与iPhone中显示的通知计数相同,红色椭圆形显示计数。
i have referred this == Link 1 and this link == link 2 to do it but no success has yet received. 我已引用此== 链接1和此链接== 链接2来完成此操作,但尚未收到成功。
please provide some guideline to do it. 请提供一些指导方针。
Thanks. 谢谢。
Though it might be possible to do such a thing it is absolutely not recommended to try and change the app's icon. 尽管有可能这样做,但绝对不建议尝试更改应用程序的图标。 This behaviour originates from iOS and is not used on Android at all.
此行为起源于iOS,完全不在Android上使用。
You can create a widget that shows the unread count and takes the user to your app if the widget is clicked though. 您可以创建一个显示未读计数的小部件,如果单击该小部件,则将用户带到您的应用程序。 The Google Reader Android app offers a good example for that:
Google Reader Android应用提供了一个很好的例子:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.