I am using Android\'s default date picker and my min supported SDK is 10 and I want to set the min and the max dates of the date picker.
Here is what I have in my M
You can get the underlying DatePicker from a DatePickerDialog (by simply calling getDatePicker()) and set its bounds using:
Where the argument is the usual number of milliseconds since January 1, 1970 00:00:00 in the default time zone. You'll still have to calculate these values of course, but that should be trivial to do with the Calendar class: just pass current date and add or substract x years from that..