I'm creating a dialog fragment using AlertDialog.Builder. I want it to just have a single EditText to grab some user text input. It works ok, but the IME keyboard does not pop up as soon as the dialog is shown. The EditText is already selected, but the user has to tap the EditText again to get the IME keyboard to pop up:
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
EditText input = new EditText(getActivity());
return new AlertDialog.Builder(getActivity())
.setView(input)
.create();
}
shouldn't it be popping up on its own immediately?
Thanks