[英]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. 我在应用程序中使用了“共享意图”,以便用户可以使用Facebook,Twitter,Gmail等共享应用程序中的某些内容。我已成功完成此操作,但我的问题是我只想知道用户从哪个应用程序中选择了哪个意向选择器。
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. clickclickclack提供了一个示例实现,说明了如何拦截ACTION_SEND意图并选择最终发生的情况。 You can modify this sample for your situation.
您可以根据自己的情况修改此示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.