80,356
社区成员
发帖
与我相关
我的任务
分享
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);