int icon = R.drawable.ic_stat_gcm;
long when = System.currentTimeMillis();
NotificationManager notificationManager = (NotificationManager)
context.getSystemService(Context.NOTIFICATION_SERVICE);
Notification notification = new Notification(icon, message, when);
String title = context.getString(R.string.app_name);
Intent notificationIntent = new Intent(context, MainActivity.class);
// set intent so it does not start a new activity
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent intent =
PendingIntent.getActivity(context, 0, notificationIntent, 0);
notification.setLatestEventInfo(context, title, message, intent);
notification.defaults = Notification.DEFAULT_ALL;
notificationManager.notify(1, notification);\
위소스에서 통지가 와서 눌러면 MaiActivity.class로 이동하는데 이동하지 않고 그냥 통지뷰가 사라지게 하고 싶으면 어떻게 하면 되나요?