This code will make the keyboard display.
InputMethodManager inputMgr = (InputMethodManager) getSystemService("A Context".INPUT_METHOD_SERVICE); inputMgr.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
The "context" may be "this" depending on where you call the code.
source share