Code example for ExtractedText

0
     *                                           int) 
     */ 
    @Override 
    public ExtractedText getExtractedText(ExtractedTextRequest request, int flags) {
        if (DEBUG) Log.w(TAG, "getExtractedText");
        ExtractedText et = new ExtractedText();
        Editable editable = getEditable();
        et.text = editable.toString();
        et.partialEndOffset = editable.length();
        et.selectionStart = Selection.getSelectionStart(editable);
        et.selectionEnd = Selection.getSelectionEnd(editable);
        et.flags = mSingleLine ? ExtractedText.FLAG_SINGLE_LINE : 0;
        return et;
    } 
 
    /** 
     * @see BaseInputConnection#beginBatchEdit() 
     */ 
    @Override 
    public boolean beginBatchEdit() { 
Connect your IDE to all the code out there  Get Codota for Java