通知栏的提示(notification)

5.通知栏的提示(notification)

发送Notification,的基本步骤

1.调用getsystemService(NOTIFICATION_SERVICE)方法获取系统的NotificationManager服务

2.通过构造器创建一个Notification对象

3.为Notification设置各种属性

4.通过NotificationManager的功能发Notification

取消发送的有 cancal(NOTIFICATION_ID);id为手机状态栏的消息的ID


5.1manager通知控制类

5.2构造notification并发送到通知栏


百度云地址 :http://pan.baidu.com/s/1c0I419I

转载于:https://my.oschina.net/TAOH/blog/526052