I tried to show keyboard after I inflate LinearLayout and call setContentView like:
InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(etContent, InputMethodManager.SHOW_FORCED);
getContent.requestFocus();
It didn't work. I also tried this:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
But it also didn't work. How can I force the keyboard to show/hide? What did I do wrong?