클릭시 내 알림을 설정하려면 어떻게해야합니까?클릭시 알림을 설정하는 방법은 무엇입니까?
나는 autoCancel(true)
설정 한하지만 내 코드
Notification n = new Notification.Builder(this)
.setContentTitle("Update for you")
.setContentText("Please click here to see the update information")
.setLargeIcon(BitmapFactory.decodeResource(this.getResources(),
R.drawable.ic_launcher))
.setSmallIcon(R.drawable.ic_launcher)
.setContentIntent(pList)
.setAutoCancel(true)
.addAction(R.drawable.ic_read, "Read", pRead)
.addAction(R.drawable.ic_list, "All Updates", pList)
.build();
NotificationManager notificationManager =
(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0, n);
감사합니다, 나는 그것을 테스트거야하지만 난 그렇게하지를 추가
NotificationCompat.Builder
클래스 형태로도 주문 가능합니다 때때로 내 알림이 표시되는 이유를 알고 있지만 때로는 그렇지 않습니다. ( – user2790880