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

编程入门 行业动态 更新时间:2024-10-26 16:27:06
本文介绍了如何显示通知指望我的应用程序图标在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.

我已经提到这个== 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:

更多推荐

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

本文发布于:2023-11-23 14:20:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621753.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   图标   屏幕   通知   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!