title: Disabling the soft keyboard
body: <p>I need to disable soft keyboard, and enable only hard one, so I created this kind of edittext, It works really good, but on some htc phones this type of edittext disabling multiline statement(don't know how it works).</p>
  
  <pre><code>public class NoImeEditText extends EditText {
      public NoImeEditText(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
      @Override
      public boolean onCheckIsTextEditor() {
          return false;
      }
  }
  </code></pre>
  
  <p>another way I using this kind of code and it doesn't work.</p>
  
  <pre><code>    keyboardText.setShowSoftInputOnFocus(false);
  
  
      InputMethodManager imm = (InputMethodManager)getMainActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
      if (imm != null)
          imm.hideSoftInputFromWindow(keyboardText.getWindowToken(), 0); 
  </code></pre>