이 시도 :
Intent notifyIntent = new Intent(context,YourActivityClassHere.class);
notifyIntent.setFlag(Intent.FLAG_ACTIVITY_NEW_TASK);
//UNIQUE_ID if you expect more than one notification to appear
PendingIntent intent = PendingIntent.getActivity(SimpleNotification.this, UNIQUE_ID,
notifyIntent, PendingIntent.FLAG_UPDATE_CURRENT);
은 당신의 활동 중 하나를 열고
PendingIntent을하고 활동을 투명하게 완료가 단지 대화 상자를 엽니 다.
편집 : 당신은 알림 클릭 이벤트에서 활동을 열려면 :
가정하여 알림 개체입니다 터들하고 싸우는데 그 :
Intent notificationIntent = new Intent(this.getApplicationContext(), ActivityToStart.class);
PendingIntent contentIntent = PendingIntent.getActivity(this.getApplicationContext(), 0, notificationIntent, 0);
notif.contentIntent = contentIntent;
다른 도움이 필요한 경우이 sample project을 볼 수 있습니다, 그것은 당신을 도울 것입니다 :
좋습니다. 나는 그것을 시도 할 것입니다. – user1939393
확실 ... 그리고 곧 알려 드리겠습니다 ... @@@ –
새로운 활동을해야합니까? 아니면 경고 활동에 추가 할 수 있습니까? – user1939393