lubart
lubart

Reputation: 1838

how to get text from another app in android?

I want to receive in my app a text that was selected in some another android app. I read about Intent class, but if I understood well, it need to send something from first app and after receive it in second one. But I can not control first app. Is it possible to solve this problem?

Thank you for advise!

Upvotes: 3

Views: 2615

Answers (2)

Fiur
Fiur

Reputation: 632

I think a ContentProvider is what you're looking for. Have a look at these pages:

Android Development Content Provider

Content Provider Tutorial

Upvotes: 1

Brian Dupuis
Brian Dupuis

Reputation: 8176

Sorry, no, it's not possible unless you are either the author of both applications (to where you can have the first app make the text available through some mechanism) or the first application provides a mechanism like a ContentProvider or something to fetch the information.

Upvotes: 1

Related Questions