首页 > 其他 > 详细

ActiveNotifications

时间:2015-12-02 12:10:42      阅读:326      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!