I'm trying to display in the DatePickerDialog
the next year, but I get 1900. What is the problem with this code?
.get(Calendar.YEAR + 1),
I'm trying to display in the DatePickerDialog
the next year, but I get 1900. What is the problem with this code?
.get(Calendar.YEAR + 1),
Try this:
.get(Calendar.YEAR) + 1,
If you need a datepicker with only year (Year Calendar) , then please refer YearPicker
for more information. its an customized yearPicker