Reputation: 627
I have started instagram intent to share an image on instagram
Intent instagram = new Intent(android.content.Intent.ACTION_SEND);
instagram.setType("image/*");
instagram.putExtra(Intent.EXTRA_STREAM, mImageCaptureUri);
instagram.setPackage("com.instagram.android");
startActivityForResult(instagram, 7999);
but i want to be notified if the user shared the image or not
Like
OnActivityResult();
Is there any way to get notified?
Upvotes: 1
Views: 601
Reputation: 1006974
Is there any way to get notified?
No. ACTION_SEND
is not designed for use with startActivityForResult()
. If you want to control this, use some Instagram SDK (if there is one) and upload the image yourself.
Upvotes: 1