title: Show keyboard after pressing a button
body: <p>I have clear button to clear EditText.</p>
  
  <pre><code>&lt;Button
          android:id="@+id/bClearText"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right|center_vertical"
          android:layout_marginRight="10dp"
          android:onClick="clearEtSearch"
          android:background="@drawable/delete" /&gt;
  </code></pre>
  
  <p>This method clears EditText:</p>
  
  <pre><code>    public void clearEtSearch(View v) {
      etSearch.setText("");
      etSearch.requestFocus();
      showKeyboard(etSearch);
  }
  </code></pre>
  
  <p>I have taken code below from hiding and changed to show keyboard, but it is not working</p>
  
  <pre><code>    private void showKeyboard(View view) {
      InputMethodManager manager = (InputMethodManager) view.getContext()
              .getSystemService(INPUT_METHOD_SERVICE);
      if (manager != null)
          manager.showSoftInputFromInputMethod(view.getWindowToken(), 0);
  }
  </code></pre>
  
  <p>What I am doing wrong? Please give suggestions to correct my code.</p>