title: Stop users choosing dates in the past with a DatePickerDialog
body: <p><a href="https://stackoverflow.com/questions/7157401/android-date-picker-should-not-accept-current-date-and-future-dates">This question</a> describes how to do it using a DatePicker widget, but I haven't got anything like that.</p>
  
  <p>I have these:</p>
  
  <pre><code>@Override
  protected Dialog onCreateDialog(int id)
  {
  
      switch (id)
      {
      case DATE_DIALOG_ID:
          return new DatePickerDialog(this, mDateSetListener, mYear1, mMonth1, mDay1);
      case DATE_DIALOG_ID_2:
          return new DatePickerDialog(this, mDateSetListener2, mYear2, mMonth2, mDay2);
      case DATE_DIALOG_ID_3:
          return new DatePickerDialog(this, mDateSetListener3, mYear3, mMonth3, mDay3);
      }
      return null;
  }
  
  
  protected void onPrepareDialog(int id, Dialog dialog)
  {
  
      switch (id)
      {
      case DATE_DIALOG_ID:
          ((DatePickerDialog) dialog).updateDate(mYear1, mMonth1, mDay1);
          break;
      case DATE_DIALOG_ID_2:
          ((DatePickerDialog) dialog).updateDate(mYear2, mMonth2, mDay2);
          break;
      case DATE_DIALOG_ID_3:
          ((DatePickerDialog) dialog).updateDate(mYear3, mMonth3, mDay3);
          break;
      }
  }
  </code></pre>
  
  <p>and then three <em>DatePickerDialog.OnDateSetListener()</em> s</p>
  
  <p>There is no setMax() or setMin() on these DatePickerDialogs.</p>
  
  <p>Thanks in advance.</p>