Softkeyboard not showing in a AlertDialog
问题 So i have a menu item that shows AlertDialog with a EditText in it, the problem is that although it is focused the softkeyboard doesn show until I click on the edittext, anyone got a solution ? I tried InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(yourEditText, InputMethodManager.SHOW_IMPLICIT); but it doesn work. Here is my code @Override public boolean onOptionsItemSelected(MenuItem item) { return (applyMenuChoice(item) ||