title: android edittext keyboard not showing after dialog dismissal
body: <p>I have an edit text that is working fine but after dismissing a dialog the keyboard is not showing despite the edit text is focused and the cursor is shown</p>
  
  <p>I searched a lot and tried many solutions that didn't fix my issue </p>
  
  <p>i tried these methods but they didn't work</p>
  
  <pre><code>public void showKeyboard(){
      InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
      inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
  }
  
  public void closeKeyboard(){
      InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
      inputMethodManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
  }
  </code></pre>
  
  <p>and also tried adding them inside a runnable</p>