My application need to copy text from any application in the device which is currently in use. For an example, if skype is open, then it should perform an operation like CTRL+A+C in PC, so the text will be copied to my app/clipboard.
I know this can be done via programatically taking a screenshot and performing OCR, but interested in knowing whether there is any direct way as mentioned before.
I am open for either Android (Java) solutions or NDK solutions.
Note: No Rooting is allowed.