Successful share intent for android
For twitter - the "data" object in OnActivityResult is null when the user cancels the share.
I don't think there is an assured way to do it.
You could initiate the send using startActivityForResult()
and hope that the activity which handles the Intent replies with a RESULT_OK
. But you can't rely on it to work always.