1
이것은 내 소스 코드입니다. 삭제할 수 없도록 만들려면 알림 관리자에서 스 와이프하지 말고 삭제해야합니다. 가능한가?삭제 불가능한 알림은 어떻게 만듭니 까?
Intent intent = new Intent(this, SecondActivity.class); intent.putExtra("NotiClick", true); PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) {
Notification Noti;
Noti = new Notification.Builder(this)
.setContentTitle("Dont Lose It")
.setContentText("Stop monitoring by click!")
.setSmallIcon(R.mipmap.ic_launcher)
.setContentIntent(pIntent)
.setAutoCancel(true).build();
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0, Noti);
}`
클릭하면 어떻게 삭제할 수 있습니까? 지금은 여전히 삭제할 수 없기 때문에 : -/ – MarekMach
수동으로 취소해야합니다. – ianhanniballake