title: Android Display Numeric Keypad on Button Click
body: <p>In my application, I am trying to display the numeric keypad when the user clicks on a button.</p>
  
  <p>When the button is clicked, I shift the focus to the EditText in my layout using requestFocus() and next I need to display the numeric keypad so that the user can type in the values..</p>
  
  <p>The values will always be numeric and hence I need to show only the numeric keypad.</p>
  
  <p>I tired using this inside my button's onClick() method but it does not work.</p>
  
  <pre><code>InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);
  </code></pre>
  
  <p>Please provide me with any solution to this.</p>
  
  <p>Also, my application is for an Android tablet supporting 4.0.3.</p>