Android之通知效果
前言:请关注刘老师讲Android视频,里边有详细讲解
http://edu.csdn.net/course/detail/2741/43382?auto_start=1
常用方法:
- 获取通知管理者
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
- 定义Builder
Builder builder = new Builder(this);
- 设置标题 setContentTitle
- 设置内容 setContentText
- 设置小图标 setSmallIcon
- 设置大图标 setLargeIcon
- 设置弹出时小标题 setTicker
- 设置setAutoCancel 设置点击自动消失
- 设置默认效果 setDefaults
- 设置跳转Activity的意图
Inte