title: date selection problem in android using date picker
body: <p>I have two date picker in an activity, I want to show first date picker selected date in another date picker ..can anyone suggest how can I do this
  .I want to show the previous selected date in the next date picker</p>
  <pre><code>final Calendar cldr = Calendar.getInstance();
                  int day = cldr.get(Calendar.DAY_OF_MONTH);
                  int month = cldr.get(Calendar.MONTH);
                  int year = cldr.get(Calendar.YEAR);
                  // date picker dialog
                  picker = new DatePickerDialog(this,
                          new DatePickerDialog.OnDateSetListener() {
                              @Override
                              public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
                                  mytext.setText(dayOfMonth + &quot;/&quot; + (monthOfYear + 1) + &quot;/&quot; + year);
  //                               
                              }
                          }, year, month, day);
  
  
  
  
  </code></pre>
  <pre><code>
   final Calendar cldrNext = Calendar.getInstance();
                  int dayNext = cldrNext.get(Calendar.DAY_OF_MONTH);
                  int monthNext = cldrNext.get(Calendar.MONTH);
                  int yearNext = cldrNext.get(Calendar.YEAR);
                  // date picker dialog
  //                int mn=cldrNext.getMaximum(Calendar.DAY_OF_MONTH);
  //                Log.e(&quot;folow_up_dt_view&quot;, String.valueOf(mn));
                  picker = new DatePickerDialog(this,
                          new DatePickerDialog.OnDateSetListener() {
                              @Override
                              public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
                                  folow_up_dt_view.setText(dayOfMonth + &quot;/&quot; + (monthOfYear + 1) + &quot;/&quot; + year);
                              }
                          }, yearNext, monthNext, dayNext);
  //               
  
  
  
                  picker.show();
  
  
  
  </code></pre>