1
시간이 카운트 다운되는 앱이 있습니다. 시간이 다가 오면 알림 바에서 알림을 받고 싶습니다.알림 표시 줄을 통해 앱에 입장 할 수 없습니다.
이미 이런 짓을 한 : 나는 알림을 클릭하여 응용 프로그램을 입력 할 때
Intent intent = new Intent();
PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);
Notification noti = new Notification.Builder(this).setTicker("Ticker Title").setContentTitle("Content Title").setContentText("Notification content.").setSmallIcon(R.drawable.iconnotif).setContentIntent(pIntent).getNotification();
noti.flags=Notification.FLAG_AUTO_CANCEL;
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(uniqueID, noti);
문제가 발생합니다. 알림이 표시되면이를 클릭하지만 아무 것도하지 않습니다.
이 문제를 해결하는 방법은 무엇입니까? 도움 주셔서 감사합니다! :)
Google에 "알림으로부터의 Android 활동 열기"를 시도하셨습니까? – Eran