Android开发片断–Notification

Android开发片段–NotificationNotificationManager mn ( NotificationManager)context.getSystemService(

Android开发片段–Notification

NotificationManager mn =( NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);notification = new Notification(iconImage,statusBarText, System.currentTimeMillis());notification.defaults |= Notification.DEFAULT_LIGHTS;notification.sound = Uri.parse("android.resource://" + context.getPackageName()+ "/" + R.raw.message);        PendingIntent contentIntent=PendingIntent.getActivity(context,                0, null, 0);        notification.setLatestEventInfo(context,title, content, contentIntent);        mn.notify(1, notification);
?