안녕하세요 낮은 지식으로는 해결이 힘들어서 이렇게 문의를 드립니다.


노티피케이션창에서 등록한 아이콘을 클릭을 하여 등록한 어플을 (본인 어플)실행을 시켜 주려고 합니다

밑에 등록한 코드 처럼 하다보니 어플이 생성되어 있음에도 같은 어플을 다시 실행을 시켜 2개의 어플이 돌아 가도록 합니다.

제가 구현 하고 싶은방법은 새로 생성하여서 실행을 시켜 주는 지금이 방법이 아닌  노티피케이션 아이콘을 클릭을 하면 

이전에 실행되어 있는 어플을 다시 호출을 해주는 방법입니다. 



하단은 현재 코드입니다...

================================================================================================

NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);


Intent intent = new Intent(TEST.this, TEST.class);


PendingIntent notifIntent = PendingIntent.getActivity(this, 0, intent, 0);


Notification notif = new Notification(R.drawable.icon,"TEST", System.currentTimeMillis());


notif.setLatestEventInfo(this, "TEXTMESSAGE", "TEXTMESSAGE",notifIntent);


notif.number++;


nm.notify(notif.number, notif);


===============================================================================================


감사합니다.