farrukh
farrukh

Reputation: 627

Android Instagram ShareIntent Callback Method

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

Answers (1)

CommonsWare
CommonsWare

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

Related Questions