(Android) Set focus to dialog programmatically


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

[java]dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
dialog.show();[/java]

Leave a Reply

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