안녕하세요.
작업이 종료되면 아래 코드로 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);
}




자답입니다..
방법이 없는듯하여 꼼수를 부렸네요..
노티클릭시 빈 인첸트를 생성한다음 onResume 함수에서 바로 종료되게 되게했습니다..
띄워져있던 dialog 가 바로 나오네요..