title: Problem with datepicker and timepicker
body: <p>Hi i put the code of the examples in android developers in the same classe but i have a problem in this </p>
  
  <p>@Override
              protected Dialog onCreateDialog(int id) {</p>
  
  <pre><code>            switch (id) {
              case DATE_DIALOG_ID:
                  return new DatePickerDialog(this,
                              mDateSetListener,
                              mYear, mMonth, mDay);  
  
              case TIME_DIALOG_ID:
                  return new TimePickerDialog(this,
                          mTimeSetListener, mHour, mMinute, false);
                  }
              return null;
          }
  </code></pre>
  
  <p>why i can't do this??</p>
  
  <p>it only works with one case..</p>