0

I want to validate if the selected date is in my database, but so far I have only found answers to set minimum and maximum date. What I need is to do the validation after touching "OK", if the date does not exist close the datePickerDialog and continue, if the date exists keep it open to select another date.

I considered using setOnDateSetListener but it requires Android >= N

JP711
  • 367
  • 2
  • 10
  • https://stackoverflow.com/questions/2620444/how-to-prevent-a-dialog-from-closing-when-a-button-is-clicked – cmak Dec 31 '21 at 02:33

0 Answers0