title: How to set active date tommorow in datepicker android studio
body: <p>How to set active date tommorow in datepicker android studio? i will disable date today, and active date tommorow?</p>
  
  <pre><code>Calendar cMin = Calendar.getInstance();
  Calendar cMax = Calendar.getInstance();
  
  cMax.add(Calendar.DAY_OF_MONTH, 7); //active in 7 days
  datePickerDialog.setMinDate(cMin); //active today
  datePickerDialog.setMaxDate(cMax); //max active in 7 days
  </code></pre>
  
  <p>how to disable today?</p>
  
  <p>All my code to be more detail, but if disable sunday, today will be enable, how to handle this problem?</p>
  
  <pre><code>public void datePicker(){
      final Calendar calendarMax = Calendar.getInstance();
      calendarMax.add(Calendar.DAY_OF_MONTH, 7);
  
      final Calendar calendarToday = Calendar.getInstance();
      int year    = calendarToday.get(Calendar.YEAR);
      int month   = calendarToday.get(Calendar.MONTH);
      calendarToday.add(Calendar.DAY_OF_MONTH, 1);
      int day     = calendarToday.get(Calendar.DAY_OF_MONTH);
  
      DatePickerDialog datePickerDialog = DatePickerDialog.newInstance(FormTestDrive.this, year, month, day);
      datePickerDialog.setMinDate(calendarToday);
      datePickerDialog.setMaxDate(calendarMax);
  
      //membuat hari minggu tidak dapat di pilih
      List&lt;Calendar&gt; daysList = new LinkedList&lt;&gt;();
      Calendar[] daysArray;
      Calendar cAux = Calendar.getInstance();
  
      while( cAux.getTimeInMillis() &lt;= calendarMax.getTimeInMillis() ){
          //if( cAux.get( Calendar.DAY_OF_WEEK ) != 1 &amp;&amp; cAux.get( Calendar.DAY_OF_WEEK ) != 7 ){
          if( cAux.get( Calendar.DAY_OF_WEEK ) != Calendar.SUNDAY){
              Calendar c = Calendar.getInstance();
              c.setTimeInMillis( cAux.getTimeInMillis() );
              daysList.add( c);
          }
          cAux.setTimeInMillis( cAux.getTimeInMillis() + ( 24 * 60 * 60 * 1000 ) );
      }
      daysArray = new Calendar[ daysList.size() ];
      for( int i = 0; i &lt; daysArray.length; i++ ){
          daysArray[i] = daysList.get(i);
      }
      datePickerDialog.setSelectableDays( daysArray );
  
      datePickerDialog.vibrate(true); //vibrate on choosing date?
      datePickerDialog.show( getFragmentManager(), "DatePickerDialog" );
  }
  </code></pre>