We use Google Analytics to track which features of our application are used and how, but this question can also apply to any situation where you want to know what the user did after calling ACTION_SEND Intent.
Basically, I want to use this feature so that users can share content (email, Twitter, Facebook, etc.). This works great using the Android Intent functionality, allowing the user to select their preferred email client, Twitter application, ect.
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
//Text seems to be necessary for Facebook and Twitter
sharingIntent.setType("text/plain");
sharingIntent.putExtra(Intent.EXTRA_TEXT, "whatever I want to share");
startActivity(Intent.createChooser(sharingIntent,"Share using"));
However, I cannot find a way to find out what the user did after returning from the intention. Instead, I was looking for use startActivityForResult, but this only seems to return whether the exchange was completed or not (and even this seems inconsistently implemented in different applications) - this, of course, does not give me any information about what they did.
At the moment, it seems, in order to have my analytics, would I have to exchange via Facebook and Twitter using my own actions and their respective SDKs?
This seems like a shame, as it undermines one of the nice features of Android - the ability to use your preferred apps for email, Twitter, Facebook, and the browser ....