Wednesday, 17 March 2021

I want to get whole text from third party app

I want to get a whole text from a third party app and I'm using the below code to achieve this. But now I'm facing a problem with the Ms word app, in the Ms word app, I didn't get the whole text. So how I achieve this in Ms word too?

        ExtractedTextRequest extractedTextRequest = new ExtractedTextRequest();
        ExtractedText extractedText = getCurrentInputConnection().getExtractedText(extractedTextRequest, 0);

        wordReadAloud = ((String) extractedText.text);
        CharSequence textBeforeCursor = getCurrentInputConnection().getTextBeforeCursor(wordReadAloud.length(), 0);


from I want to get whole text from third party app

No comments:

Post a Comment