상태바에 notification 을 등록하고 클릭시 특정 activity 를 실행하도록 하고 있습니다.

아래 소스에서처럼 putExtras 를 이용해서 activity 로 특정값을 전달하고 특정 activity 에서 getExtras 를 이용해서 값을 읽고있습니다.

notification 이 동시에 여러개 등록될때 가장 마지막(또는 처음?) 에 등록한 값이 공유가되더라고요..

인텐트로 activity 여러개 실행시 각각 독립된 값이 전달되도록 하고 싶은대 어떻게하나요?

 

소스는 아래와 같습니다.

 

        NotificationManager nm;
        nm = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
        Notification not = new Notification(R.drawable.ic_launcher, msgTitle, System.currentTimeMillis());
        Intent i = new Intent(this,web.class);
        i.addFlags(
          Intent.FLAG_ACTIVITY_NEW_TASK |
          Intent.FLAG_ACTIVITY_SINGLE_TOP
        );
        Bundle extras = new Bundle();
        extras.putString("pushURL", url);
        extras.putString("pushID", pushID);
        i.putExtras(extras);
        PendingIntent content = PendingIntent.getActivity(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
        i.putExtras(extras);
        not.setLatestEventInfo(this, msgTitle, msg, content);