I am using a date picker to set an alarm but this is also allowing user to set the dates even before current date here is my code to set date picker
public void onClick(View v) {
new DatePickerDialog(ReminderDetailActivity.this, date,
myCalendar.get(Calendar.YEAR), myCalendar
.get(Calendar.MONTH), myCalendar
.get(Calendar.DAY_OF_MONTH)).show();
}
can anyone tell me hoe to restrict user from going to past dates
thank you in advance