码迷,mamicode.com
首页 > 其他好文 > 详细

ActiveNotifications

时间:2015-12-02 12:13:46      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

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

ActiveNotifications

标签:

原文地址:http://www.cnblogs.com/dongweiq/p/5012435.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!