简体   繁体   English

我如何知道用户在android中的共享意图中选择了哪个应用程序

[英]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.

相关问题 如何知道在 android 的 Intent.ACTION_SEND 中选择了哪个意图 - How to know which intent is selected in Intent.ACTION_SEND in android 在使用意图选择器时,如何知道用户选择了哪个应用程序? - How to know which application the user chose when using an intent chooser? 我怎么知道共享意图呢? - how can I know sharing intent done? 我怎么知道Android应用程序是否被用户明确杀死? - How do i know whether android application explicitly killed by user or not? 如何知道在Intent.ACTION_SEND中选择了哪个意图? - How to know which intent is selected in Intent.ACTION_SEND? 我如何知道在Android Studio中选择了哪个单选按钮 - How can I know which radio button is selected in Android studio 当我的应用程序打开并且用户选择“始终”在我的应用程序中打开域时,如何绕过Android意向过滤器? - How do I bypass Android intent filter when my app is open and user has selected to “always” open domain in my app? Android 如何知道选中了哪个复选框 - Android How to know which check box is selected 在Android中,如何通过编程方式更改特定意图的默认应用程序? - In Android how do I change the default application for a particular intent programmatically? 如何通过意图共享知道哪个应用程序共享 - How to know which application is share through intent share
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM