안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요?
Notification 이용해서 Status bar 에 알림 구현하는데..
Status Bar 의 알림을 클릭하면 항상 Noti 를 등록한 App가
호출되더라구요.
그냥 확인 기능 처럼 Status Bar 의 알림 클릭하면
아무 동작 안 하고 그냥 이전화면으로 돌아가게 하려면
어떻게 해야 하나요?
아래는 현재 구현 소스입니다.
notify.number++;
notify.flags |= Notification.FLAG_AUTO_CANCEL;
Intent toLaunch = new Intent(Notifications.this, Notifications.class);
PendingIntent intentBack = PendingIntent.getActivity(Notifications.this, 0, toLaunch, 0);
notify.setLatestEventInfo(Notifications.this, "Hi there!", "This is even more text.", intentBack);
notifier.notify(NOTIFY_1, notify);