如何显示通知指望我的应用程序图标在Android主屏幕 [英] How to show Notification Count on My App Icon on Home Screen in Android

查看:117
本文介绍了如何显示通知指望我的应用程序图标在Android主屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在的问题是, Android的地方新的警报系统中的广泛通知栏而iPhone直接通过特定的应用程序图标放置一个通知。

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.

所以我必须做的是,我必须表明我从C2DM接收器接收相同的,因为它是显示在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.

我已经提到这个== <一个href="http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android">Link 1 并链接== <一href="http://stackoverflow.com/questions/5569695/android-is-it-possible-to-update-a-imageview-imagebutton-with-a-number-to-show">link 2 做到这一点,但没有成功,至今尚未收到。

i have referred this == Link 1 and this link == link 2 to do it but no success has yet received.

请提供一些指引,做到这一点。

please provide some guideline to do it.

感谢。

推荐答案

虽然有可能做这样的事情是绝对不推荐可尝试改变应用程序的图标。这种现象源于iOS和所有未使用Android上。

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.

您可以创建一个小部件,显示未读邮件数,并把用户带到你的应用程序,如果小部件被点击,但。谷歌阅读器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:

这篇关于如何显示通知指望我的应用程序图标在Android主屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆