= PendingIntent.getActivity(mContext, 0, in,
0);
notification.contentIntent = pIntent;
// 设置通知的显示视图
RemoteViews...remoteViews = new RemoteViews(
mContext.getPackageName(),
R.layout.notification_contentview);
// 设置暂停按钮的点击事件...设置跳转到对应界面
PendingIntent pauseIn = PendingIntent.getActivity(mContext, 0, in,
0);
// 这里可以通过Bundle等传递参数
remoteViews.setOnClickPendingIntent...设置跳转到对应界面
PendingIntent stopIn = PendingIntent
.getActivity(mContext, 0, in, 0);
// 这里可以通过Bundle等传递参数
remoteViews.setOnClickPendingIntent...(R.id.cancel, stopIn);
// 设置通知的显示视图
notification.contentView = remoteViews;
// 发出通知
manager.notify(notificationId