Android ACTION_SEND Intent and Google Analytics - how do I know what they picked? -


we using google analytics track features of our application being used , how, question apply situation want know user did after calling action_send intent.

basically, want use functionality allow users share content (email, twitter, facebook, etc.) works wonderfully using stock android intent functionality, allowing user pick preferred email client, twitter app, ect.

        intent sharingintent = new intent(intent.action_send);         //text seems necessary facebook , twitter         sharingintent.settype("text/plain");         sharingintent.putextra(intent.extra_text, "whatever want share");         startactivity(intent.createchooser(sharingintent,"share using")); 

however, can't find way know user did upon return intent. looked using startactivityforresult instead, seems return whether or not completed or canceled sharing (and seems inconsistently implemented across different applications) - doesn't give me information on did.

at point, looks in order have analytics, have implement sharing via facebook , twitter using custom actions of own , respective sdks?

this seems shame since undermines 1 of nice features of android - being able use preferred email, twitter, facebook , browser applications....

if create intent selection list yourself, instead of allowing intent.createchooser you, see intent selected before executing yourself.

here how gallery3d it, android source code. queries package manager packages match intent you're asking run , returns list of resolveinfo can use present user choices, record choice , start activity selection.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -