service에서 다음과 같이 notification에서 activity를 부릅니다.

public void setNotify() {
  mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

  Notification notification = new Notification(R.drawable.icon, "start message", System.currentTimeMillis());
  notification.flags = Notification.FLAG_ONGOING_EVENT;

  PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, HelloServiceActivity.class), 0);
  notification.setLatestEventInfo(this, "title", "text", pendingIntent);
  mNotificationManager.notify(_id, notification);
 }

그런데 문제는,
activity가 열려 있는지 여부를 확인하지 않고 무조건 activity를 열더라구요

activity가 열려있는지 확인하고 열려면 어떻게 해야 하나요 ?
도와주세요.