简体   繁体   中英

How do I know which application is selected by user in Sharing Intent in android

I have used Sharing Intent in my application so that user can share some content from my app using Facebook, Twitter, Gmail etc. I have successfully done this but my problem is that I just want to know that which application is get selected by user from Intent Chooser.

I have gone through some examples and questions but not able to find any helpful answer so if anyone can help me to sort out this it would be very helpful for me.

Any help would be appreciable, thanks in advance.

clickclickclack has an example implementation of how you can intercept the ACTION_SEND intent and choose what ends up happening. You can modify this sample for your situation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM