Emme Developer Well-Known Member Licensed User Longtime User Dec 22, 2017 #1 Hi everybody! Is possibile set a click listener of a Share Intent? I do not necessarily want to know which app was clicked, I just want to know that the user clicked something This is the code to share Code: Copy Dim in As Intent in.Initialize(in.ACTION_SEND, "") in.PutExtra("android.intent.extra.TEXT","Share share share"&shareurl) in.SetType("text/plain") in.WrapAsIntentChooser("Condividi") StartActivity(in) Many thanks Last edited: Dec 22, 2017
Hi everybody! Is possibile set a click listener of a Share Intent? I do not necessarily want to know which app was clicked, I just want to know that the user clicked something This is the code to share Code: Copy Dim in As Intent in.Initialize(in.ACTION_SEND, "") in.PutExtra("android.intent.extra.TEXT","Share share share"&shareurl) in.SetType("text/plain") in.WrapAsIntentChooser("Condividi") StartActivity(in) Many thanks
Erel B4X founder Staff member Licensed User Longtime User Dec 24, 2017 #2 I think that the only possible way is to build the dialog yourself. You can use PackageManager.QueryIntentActivities to get a list of possible apps. Upvote 0
I think that the only possible way is to build the dialog yourself. You can use PackageManager.QueryIntentActivities to get a list of possible apps.