Reputation: 1838
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
Reputation: 632
I think a ContentProvider
is what you're looking for.
Have a look at these pages:
Android Development Content Provider
Upvotes: 1
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