Code example for BaseInputConnection

0
 
        result = super.onCreateInputConnection(outAttrs);
 
        if (result == null) {
            if (inputConnection == null)
                inputConnection = new BaseInputConnection(this, false);
            result = inputConnection;
        } 
        return result;
    } 
 
    @Override 
    public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
        video.resetScreen(true);
    } 
 
    @Override 
    public void surfaceCreated(SurfaceHolder holder) {
        running = true;
        context.addButtonsView(input, availableHeight(), isLandscape());
    }