摘要:
首先要搞明白手机顶部的那个条叫状态栏(status bar),下拉后,那一片叫扩展状态栏(expanded status bar)。1.第一种使用方法(API LEVEL 11以下使用这种方式(不包含11))。区别api级别是因为,一些方法已经过时。/*构造函数 Notification(int a,String b,long c) *a 在状态栏上显示的图标id。 *b 在状态栏上显示的文字。 *c 在扩展状态栏上显示的通知产生(接收)的时间所用的时间戳.(一般采用 System.currentTimeMillis())*/Notification notification=new... 阅读全文