[JAVA] Add Button in Notification
Notification에 Button을 Add 하는 방법 1. Notifcation을 눌렀을때 일반적으로 반응할 Intent 선언 2. Notification에서 Button을 눌렀을떄 사용할 Intent를 선언 3. Notification에서 addAction을 추가 (Notifcation EXIT 기능 Action) createNotificationChannel(); Intent notificationIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); //end option Intent notificationca..
2021.02.20