Hello All:
How to disable future dates in DatePickerDialog in Android.
I am using following implementation.
http://www.androidpeople.com/android-datepicker-dialog-example
Thanks
Ashwani
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to call getDatePicker().setMaxDate(long) on your DatePickerDialog to set today as your max date. You can update the function with the same name from the snippet you posted.
Note the DatePickerDialog is the object that I referenced in the Android Docs from the link I posted.