Android dialog Alert
<p>I want to create a <code>ToDoList</code> application for android. For Entering ToDoItem i am using alert , This is working properly. But now i want to show a datepicker also in alert. But it is not adding both view </p>

<pre><code>(EditText and DatePicker) in alert. MyCoding is

final AlertDialog.Builder al = new AlertDialog.Builder(obj);
             al.setMessage("ToDo Item");

                // Set an EditText view to get user input 
                final EditText input = new EditText(obj);
                final DatePicker dat= new DatePicker(obj);
                al.setView(input);
                al.setView(dat);

                al.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int whichButton) {
                  toDoItems.add(0,input.getText().toString());
                  aa.notifyDataSetChanged();
                  }
                });

                al.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int whichButton) {
                            dialog.dismiss();
                      }
                    });
                al.show();
</code></pre>

<p>Please suggest me what to do ?</p>
