在平板上,发个消息到通知栏时,这个通知会在通知栏弹出提示,并把其他的图标挡住,如果你不点他,过几秒后才自动消失,可不可以不让他弹出提示,只要在通知栏有个图标就可以,像下载东西一样,下载东西时通知栏会有个图标但不弹出提示,我想要的就是这样的效果,不知道大家有没有知道的,谢了,通知代码如下。PendingIntent contentIntent = PendingIntent.getActivity(mContext, 0,
intent, PendingIntent.FLAG_ONE_SHOT);
Notification notification = new Notification(resIcon,
mContext.getString(resString), when);
notification.setLatestEventInfo(mContext,
mContext.getText(R.string.notification_title),
mContext.getText(resString), contentIntent);
notification.flags = Notification.FLAG_NO_CLEAR;
((NotificationManager) mContext
.getSystemService(Context.NOTIFICATION_SERVICE)).notify(
NOTIFICATION_ID, notification);