(Android) Set focus to dialog programmatically


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

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 *