Abramodj Abramodj - 1 year ago 122
Android Question

Dialog datePicker bounds - Android

I'm using a datePicker dialog to pick the date, and I must set a lower and an upper bound. How can i do this?
Should I use the

public void onDateChanged(DatePicker view, int year, int month, int day)

Please be explicit because I'm working with Android from 4 days only!

Answer Source

I suppose a DatePicker can NOT have a bound range. But you can check the date picked by user yourself. And if the date is invalid, you can alert the user.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download