he intentado mostrar el teclado después de inflar LinearLayout y llamo setContentView como:¿Cómo forzar al teclado a mostrar/ocultar?
InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(etContent, InputMethodManager.SHOW_FORCED);
getContent.requestFocus();
No funcionó. También probé esto:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
Pero tampoco funcionó. ¿Cómo puedo forzar al teclado a mostrar/ocultar? ¿Qué hice mal?
duplicado exacto de http://stackoverflow.com/questions/1109022/how-to-close-hide-the-android-soft-keyboard y http://stackoverflow.com/questions/2479504/forcing-the-soft-keyboard-open – Polynomial