标签:
The NotificationManager can tell you how many notifications your application is currently showing. This sample demonstrates how to use this API that has been introduced with Android M. To get started, press the "add a notification" button. When a notification is being canceled, the count gets updated via a PendingIntent.
NotificationManager可以告诉你您的应用程序当前显示有多少条通知。此示例演示如何使用此API,它已经在Android M上推出了. 首先,请按“添加通知”按钮。当通知被取消,这个数值将通过PendingIntent更新。
代码下载 http://pan.baidu.com/s/1G8Kbk
标签:
原文地址:http://www.cnblogs.com/dongweiq/p/5012435.html