I have a dialog containing a timer. On all my other phones, everything is fine. I press the button, a dialog appears (containing the timing). Then I set the time.
In the version of Nexus 7 android 4.2. In landscape mode, when I click on the button, a dialog appears and the keyboard appears automatically. I haven't clicked yet TimePicker.
Does anyone know why I am getting this problem on Nexus7.
Edit: code is 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();
}
source
share