On my view I have a button which when pressed pops up a DatePickerDialog. The poppedup dialog has a \"Done\" button. When I press that button the selected date is populated
You could try include this in your alertDialog
If you cancel the dialog, mEdit will return as empty.
mEdit.setText("");
AlertDialog alertDialog;
alertDialog.setOnCancelListener(new OnCancelListener()
{
@Override
public void onCancel(DialogInterface dialog)
{
// TODO Auto-generated method stub
mEdit.setText("");
dialog.dismiss();
}
});