title: Using subclass of Input Method Service
body: <p>I extended InputMethodService hoping to use this Service for showing a soft keyboard even though a hard keyboard is connected(based off the following post <a href="https://stackoverflow.com/questions/11602209/show-soft-keyboard-even-though-a-hardware-keyboard-is-connected">Show soft keyboard even though a hardware keyboard is connected</a>).  Is there a way to bind to this service within the app without having to declare it in the manifest?  The end result is to have InputMethodService.onEvaluateInputViewShown return true so that the soft keyboard will show even though a hard keyboard is connected.</p>
  
  <p>I would like to use the extended class MultiInputMethodService with the inputmethodmanager in show/hideSoftKeyboard:</p>
  
  <pre><code>public class MultiInputMethodService extends InputMethodService {
  
          @Override
          public boolean onEvaluateInputViewShown () {
              Log.i("onEvaluateInputViewShow","onEvaluateInputViewShown");
               return true;
          }   
  }
  </code></pre>
  
  <p>my activity:</p>
  
  <pre><code> private void showSoftKeyboard() {
          InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
          imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY );
      }
  
      private void hideSoftKeyboard() {
          InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
          imm.hideSoftInputFromWindow(this.myInput.getEditText().getWindowToken(), 0);
      }
  </code></pre>