Hi, i want an EditText which creates a DatePicker when is pressed. So i write the next code:
mEditInit = (EditText) findViewById(R.id.date_init);
mEditInit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
showDialog(DATEINIT_DIALOG);
}
});
But when i press the EditText the action is the typical: a cursor waiting for typing text instead show the Dialog i want.
Any idea?
Thanks