Code example for BaseInputConnection

	public InputConnection onCreateInputConnection (EditorInfo outAttrs)
		outAttrs.inputType = InputType.TYPE_CLASS_TEXT;
		outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI;
		return new BaseInputConnection(this, false);
	DemoRenderer mRenderer;
	Activity mParent;
	DifferentTouchInput touchInput = null;
	boolean onScreenKeyboard = false;
	public static native void nativeMouse( int x, int y, int action, int pointerId );
	public static native void nativeKey( int keyCode, int down );
	public static native void nativeResume(); 
Connect your IDE to all the code out there  Get Codota for Java