Android – OnDateChangedListener – how do you set this?
Once you’ve created your DatePicker, you need to initialize it with the date you want to display at first. That’s the point at which you can add your listener. See DatePicker.init(int, int, int, OnDateChangedListener). Update 26 API allows to set listener: DatePicker.setOnDateChangedListener()