onCreateDialog() not taking two cases
<p>I want to display timePicker 2 times. for retriving start time n for stop time. THis code is showing error as "Duplicate case". I tried alot but am unable to find answer for this silly question. Please guide me.    </p>

<pre><code>        protected Dialog onCreateDialog(int id)
 {
    switch (id) 
    {
    case TIME_DIALOG_ID1:
      //  return new TimePickerDialog(this,
           //   mTimeSetListener, startHour, startMinute, true);
           Toast.makeText(getApplicationContext(),"hr:"+startHour+"min:"+startMinute, Toast.LENGTH_LONG).show();
        break;
    case TIME_DIALOG_ID2:
        //  return new TimePickerDialog(this,
             //   mTimeSetListener, startHour, startMinute, true);
           Toast.makeText(getApplicationContext(),"hr:"+stopHour+"min:"+startMinute, Toast.LENGTH_LONG).show();
        break;
    }
    return null;
 }
</code></pre>
