Before Marking it duplicate please read it below. This question was earlier asked around 4-5 years ago.
I have gone through this question on stack. But solution was not given so far so I just wanted to know anyone found any solution for this.
Question is:
How to check if a user successfully completed a share intent or he has cancelled the operation? For instance if a user wanted to share an app via Facebook or gmail, so will ACTION_SEND action after successfull share intimate back to my current app?
Note: Please don't give answers for how to create share intent or onActivityResult .
@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();
}}
But this Toast is never occurring.Please suggest me any solution for this.