I have to share image with text to all social medias. So I tried below code:-
share.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Uri uri = imageUrl;
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/html");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, (String)
v.getTag(R.string.app_name));
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,
"Text for post");
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
context.startActivity(Intent.createChooser(shareIntent, "Share Using"));
}
});
It is working, now I can share text with image in gmail, like apps. But the problem is I can't getting Facebook, Twitter and Instagram by using this shared intent even though I have installed and updated all this apps.
I need to get all the social media apps for sharing.
By using "text/plain" as shareIntent type Facebook appears but can't share image...
Can someone help me to find the answer?
Thanks in advance.