Skip to content Skip to sidebar Skip to footer

Instagram Option In Sharing Intent Android

I am working on an application which will be sharing content on different social sites. The problem is that I cant see the Instagram option in sharing intent. I can see bluetooth,

Solution 1:

Hi here I'm sending an image to Instagram:

Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(MediaStore.Images.Media
.insertImage(getContentResolver(), source, title, description)));
shareIntent.setType("image/jpeg");
startActivity(Intent.createChooser(shareIntent,
getResources().getString(R.string.send_to)));

this only answers the first part of the question.

Solution 2:

If you want to share image on instagram then you need not to use Intent.createChooser for that, you can use

   shareIntent.setPackage("com.instagram.android");

Post a Comment for "Instagram Option In Sharing Intent Android"