Took a little to understand, but here you go:
When creating a pop-up window, I had to set a text field (Edittext) to force the soft keyboard to open when receiving focus.
txtBox.setOnFocusChangeListener(new OnFocusChangeListener() { public void onFocusChange(View v, boolean hasFocus) { if (hasFocus == true){ InputMethodManager inputMgr = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); inputMgr.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); inputMgr.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT); } } }); txtBox.requestFocus();
source share