안녕하세요.


작업이 종료되면 아래 코드로 Notification 을 합니다.

그런데, 띄우는 intent에 AlertDialog 가 띄워져 있는 상태입니다. ( "작업이 완료되었습니다" )

때문에, 아래 코드를 실행하면 작업중이던 intent 를 띄워주긴하는데, 이때 Dialog는 보여지지않네용..

Dialog 를 포함한 실행중인 Intent 를 제대로 표시해줄수 있는 방법이 없을까요? 

intent 가 아닌, AlertDialog 를 직접 띄울수도 없는것 같고..


고견 부탁드립니다.



private void backupCompletionNotification() {

NotificationManager mgr = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);

Intent notiIntent = new Intent(testActivity.this,  testActivity.class); // 작업중인 intent

notiIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

Notification note = new Notification(R.drawable.icon, "메세지", System.currentTimeMillis());

PendingIntent i = PendingIntent.getActivity(this, 0, notiIntent, 0);

note.setLatestEventInfo(this, "제목", "본문", i);

note.flags |= Notification.FLAG_AUTO_CANCEL; // 누르면 사라지게

mgr.notify("메세지", note);

}