I want an EditText which creates a DatePicker when is pressed. So I write the following code:
mEditInit = (EditText) findViewById(R.id.date_init); mE
I had this same problem. The code is fine but make sure you change the focusable value of the EditText to false.
I hope this helps anyone who has had a similar problem!