Code example for InputConnection

Methods: setComposingText

0
                return ic.sendKeyEvent(event);
            } 
 
            public boolean setComposingText(CharSequence text, int newCursorPosition) {
                Log.w(TAG, "setComposingText(\"" + text + "\", " + newCursorPosition + ")");
                return ic.setComposingText(text,newCursorPosition);
            } 
 
            public boolean setSelection(int start, int end) {
                Log.w(TAG, "setSelection" + start + "," + end);
                return ic.setSelection(start,end);
            } 
             
            /* 
            public boolean setComposingRegion(int a, int b) { 
                Log.w(TAG, "setComposingRegion(\"" + "\", " +  ")"); 
                return true; 
            } 
            */ 
 
        };