//
NotificationManager notificationManager = (NotificationManager)this.getSystemService(NOTIFICATION_SERVICE);
//创建一个通知
Notification notification = new Notification(R.drawable.grid_account,"信息",System.currentTimeMillis());
Intent intent = new Intent(Activity01.this,Activity01.class);
PendingIntent pendingIntent = PendingIntent.getActivity(
Activity01.this, 0, intent, 0);
notification.setLatestEventInfo(Activity01.this, "你的一条信息","来自张三的信息", pendingIntent);
//发送通知
notificationManager.notify(0, notification);
notificationManager.notify(0 + 1, notification);