原文链接:http://www.hackvip.com/mobiwen/html/Mobile_219698.html

NotificationManager nm =
  (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
  Notification代表着一个通知.
  Notification的属性:
  audioStreamType 当声音响起时,所用的音频流的类型
  contentIntent 当通知条目被点击,就执行这个被设置的Intent.
  contentView 当通知被显示在状态条上的时候,同时这个被设置的视图被显示.
  defaults 指定哪个值要被设置成默认的.
  deleteIntent 当用户点击"Clear All Notifications"按钮区删除所有的通知的时候,这个被设置的Intent被执行.
  icon 状态条所用的图片.
  iconLevel 假如状态条的图片有几个级别,就设置这里.
  ledARGB LED灯的颜色.
  ledOffMS LED关闭时的闪光时间(以毫秒计算)
  ledOnMS LED开始时的闪光时间(以毫秒计算)
  number 这个通知代表事件的号码
  sound 通知的声音
  tickerText 通知被显示在状态条时,所显示的信息
  vibrate 振动模式.
  when 通知的时间戳.
  Notification的公共方法:
  describeContents() Describe the kinds of special objects contained in this Parcelable's marshalled representation.
  setLatestEventInfo(Context context, CharSequence contentTitle, CharSequence
======黑软基地手机资讯频道======
  
contentText, PendingIntent contentIntent) 设置Notification留言条的参数
  writeToParcel(Parcel parcel, int flags) Flatten this notification from a parcel.
  toString() …………….
  将Notification发送到状态条上:
  Java代码
  Notification notification = new Notification();
  Notification的设置过程……..
  nm.notify(0, notification); //发送到状态条上

更多相关文章

  1. 自定义Toast,兼容那些安装时把通知关掉还问为啥不给提示的测试人
  2. Android 球形进度条,动态控制时间与最大进度
  3. Android——Activity去除标题栏和状态栏
  4. Android Stuido第五期 - 时间选择器
  5. Android标题栏、状态栏图标文字颜色及背景动态变化
  6. Android自定义view七时间轴(三)---纵向的图表时间轴
  7. Android如何实时监听网络状态.

随机推荐

  1. Android(安卓)动画——过渡动画中Activit
  2. IT网站收藏
  3. Android(安卓)Intent 用法全面总结
  4. Android从零开始(二)
  5. 【北亚服务器数据恢复】Raid5热备盘上线
  6. 人物的头发怎么画?漫画人物头发画法步骤
  7. js编程学习之实战购物车
  8. 三句话测试你是否懂git
  9. MyCms 自媒体 CMS 系统 v3.2.1 发布,后台
  10. Day 35/100 React 组件通讯基本介绍