Code example for BaseInputConnection

0
  public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
    outAttrs.imeOptions |=
        EditorInfo.IME_FLAG_NO_EXTRACT_UI | EditorInfo.IME_FLAG_NO_ENTER_ACTION
            | EditorInfo.IME_ACTION_NONE;
    outAttrs.inputType = EditorInfo.TYPE_NULL;
    return new BaseInputConnection(this, false);
  } 
 
  @Override 
  public boolean onSingleTapUp(MotionEvent e) {
    mInputMethodManager.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT);
    return true; 
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE