如何显示通知指望我的应用程序图标在Android主屏幕我的、应用程序、图标、屏幕

2023-09-04 11:52:30 作者:说忘是谎

现在的问题是, 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.

我已经提到这个== Link 1 并链接== 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: