Android: show soft keyboard automatically when focus is on an EditText
I\'ve read this post that automatically shows the virtual keyboard when a dialog box is shown.
Just try adding the below line before "et.setOnFocusChangeListener"
"et.setOnFocusChangeListener"
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)) .showSoftInput(et, 2);