Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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, mail, messaging etc but cant see Instagram. I have Instagram application installed on my device. Can any one tell me what issue is this??

Secondly is there any way to customize the options in Sharing Intent? Like I want to exclude messaging from it. Is it possible?

like image 881
Jawad Amjad Avatar asked Feb 20 '23 23:02

Jawad Amjad


1 Answers

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.

like image 155
Abdullah Avatar answered Mar 07 '23 11:03

Abdullah