简体   繁体   English

如何在Android的主屏幕上的我的应用程序图标上显示通知计数

[英]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.

相关问题 如何在android中显示本地推送通知(在主屏幕上的应用程序图标,如i-phone) - how to show local push notification (on app icon on home screen like i-phone) in android 如何以编程方式在Android上的应用程序图标上显示推送通知徽章计数? - How to show push notification badge count on app icon in android programmatically? 如何检查活动是从通知启动还是从用户单击 android 中的主屏幕仪表板应用程序图标启动 - how to check whether the activity was launched from notification or from the user click on home screen dashboard app icon in android 如何计算推送通知并在主屏幕应用程序图标上显示它们 - How to count the push Notifications and display them on the home screen app icon 我想在我的应用程序图标上显示未读通知计数 - I want to show unread notification count on my app icon 从Android中的GCM创建新通知时,如何在自定义锁定屏幕上显示应用程序图标 - How to show app icon in custom lock screen when creating new notification from GCM in Android 每次我点击主屏幕图标时,我的应用程序都会显示启动画面,而应用程序在后台 - My app show splash screen every time i tap home screen icon while app in background 以编程方式安装Android应用程序时如何在主屏幕上添加图标? - How to add a icon on home screen while installing an android app programatically? 如何以编程方式在主屏幕应用程序图标android中设置徽章编号? - How set badge number in home screen app icon android programatically? 如何在主屏幕 android 上添加应用程序图标(react-native)? - How to add icon of the app on the home android screen (react-native)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM