I have a simple Android app with code like this (from the Android Documentation):
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
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.
AnD then you can check
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
Toast.makeText(this,"Successfully Sharing", Toast.LENGTH_SHORT).show();
}
}