title: Soft Keyboard not getting displayed
body: <p>I want to display a soft keyboard when the EditText is selected. I tried this bit of code in the onclick event handler of EditText as follows:</p>
  
  <pre><code>InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
      imm.showSoftInput(txtUserId, InputMethodManager.SHOW_IMPLICIT);
  </code></pre>
  
  <p>But this did not worked :( </p>
  
  <p>Please help with all the steps needed for getting the soft keyboard displayed when the EditText is clicked.</p>
  
  <p>Regards,</p>