public void onBtnNoti1() {
Intent intent = new Intent(this, MainActivity.class);
PendingIntent pIntent = PendingIntent.getActivity(MainActivity.this, 0, intent, 0);
Notification noti = new Notification.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setTicker("New Message1")
.setContentTitle("Noti - Sound")
.setContentText("Self Activity")
.setWhen(System.currentTimeMillis()) // 이걸 현재시간 말고, 데이터 피커를 사용해서 미리
.setContentIntent(pIntent) 날짜를 예약해서 그 시간에 알람이 울리게 하고 싶은데, .build(); 가능한 방법일까요??
noti.defaults |= Notification.DEFAULT_SOUND;
noti.flags |= Notification.FLAG_AUTO_CANCEL;