(Android) Set focus to dialog programmatically

By | June 19, 2014

To get the keyboard to pop up after creating a dialog:

dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
dialog.show();

Leave a Reply

Your email address will not be published. Required fields are marked *