I have a dialog containing a time picker. On all my other phones, all is OK I click on the button , the dialog (containing time picker) appear. Than I set the time.
On the Nexus 7 version android 4.2. In the landscape mode, when I click on the button the dialog appear and the keyboard appears automatically. I didn't clicked on TimePicker
yet.
Any one know why I am getting this issue on Nexus7.
Edit: The code is given below
private DatePicker mDatePicker;
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
mDatePicker = (DatePicker) view.findViewById(R.id.date_picker);
mDatePicker.init(mDate.get(Calendar.YEAR), mDate.get(Calendar.MONTH), mDate.get(Calendar.DAY_OF_MONTH), this);
mDatePicker.clearFocus();
}