[英]How to count the push Notifications and display them on the home screen app icon
How to count the push Notifications and display them on the home screen app icon 如何计算推送通知并在主屏幕应用程序图标上显示它们
public void onReceive(Context context, Intent intent) { } public void onReceive(Context context,Intent intent){}
You can't display notification numbers in the App Icon. 您无法在应用程序图标中显示通知编号。 You can't change this icon at run-time.
您无法在运行时更改此图标。 Besides, this is an iOS paradigm (displaying the number of notifications in the icon), so you shouldn't do this on Android anyway even if it was possible.
此外,这是一个iOS范例(显示图标中的通知数量),所以即使可能,你也不应该在Android上这样做。
You can't. 你不能。 Android doesn't have any analogous to iOS's "badge count".
Android与iOS的“徽章数量”没有任何相似之处。 My wife's Samsung displays Facebook notification count, but that's something that's built into TouchWiz and perhaps a special Facebook addition for Samsung phones.
我妻子的三星显示Facebook的通知数量,但这是TouchWiz内置的东西,也许是三星手机的特别Facebook添加。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.