title: Android DatePicker : Disabling the PREVIOUS dates based on the CURRENT date
body: <p>I have a <code>DatePicker</code> in my app which is set in this way :</p>
  
  <p>Layout :</p>
  
  <p></p>
  
  <pre><code>            &lt;TextView
                  android:id="@+id/traveltext"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight="1.11"
                  android:text="Date Of Travel"
                  android:textStyle="bold" /&gt;
  
               &lt;EditText
              android:id="@+id/txtDate"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1" &gt;
          &lt;/EditText&gt;
  
                &lt;Button
              android:id="@+id/btnCalendar"
              android:layout_width="30dp"
              android:layout_height="42dp"
              android:layout_marginRight="50dp"
              android:background="@drawable/date" &gt;
          &lt;/Button&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Global Values : </p>
  
  <pre><code>Button btnCalendar;
  EditText txtDate;
  private int mYear, mMonth, mDay;
  </code></pre>
  
  <p>OnCreate :</p>
  
  <pre><code>btnCalendar = (Button) findViewById(R.id.btnCalendar);
      txtDate = (EditText) findViewById(R.id.txtDate);
      btnCalendar.setOnClickListener(this);
  </code></pre>
  
  <p>Method :</p>
  
  <pre><code> @Override
  public void onClick(View v) {
  
      if (v == btnCalendar) {
  
          // Process to get Current Date
          final Calendar c = Calendar.getInstance();
          mYear = c.get(Calendar.YEAR);
          mMonth = c.get(Calendar.MONTH);
          mDay = c.get(Calendar.DAY_OF_MONTH);
  
          // Launch Date Picker Dialog
          DatePickerDialog dpd = new DatePickerDialog(this,
                  new DatePickerDialog.OnDateSetListener() {
  
                      @Override
                      public void onDateSet(DatePicker view, int year,
                              int monthOfYear, int dayOfMonth) {
                          // Display Selected date in textbox
                          txtDate.setText(dayOfMonth + "-"
                                  + (monthOfYear + 1) + "-" + year);
  
                      }
                  }, mYear, mMonth, mDay);
          dpd.show();
      }   }
  </code></pre>
  
  <p>Now my question is, how do i disable the PREVIOUS dates based on the CURRENT date?</p>
  
  <p>Please help. Thanks.</p>