Java(2)
-
[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 -
[JAVA] Foreground Service & SMS Broadcast Example
*Foreground Service Example https://androidwave.com/foreground-service-android-example/ Foreground Service Android Example - AndroidWave In this Post, I'll explain about foreground service android, How does work? What are the advantages and implementation? At last, I will prepare a foreground service sample app. androidwave.com 해당 예제를 베이스삼아 Foreground Service가 도는 상태에서 SMS Broadcast 를 받는 예제를 만들어보..
2021.02.19