I\'m creating a simple typing game in Android. I have no problem getting input from the physical keyboard, but now I\'m trying to get the soft keyboard to appear without the
The following code works for me:
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput (InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
I use this code in a onKeyUp handler when I press the "menu" button.