Twilie2012
Twilie2012

Reputation: 79

Android share intent issue

I am trying to use share intent, but i think, it does not work correctly. In list of applications for sharing, Facebook or Pinterest do not appear but Gmail or Cloud Print do. I want all possible applications to appear there.

Here is my code. Thanks for any advices.

final Intent shareIntent = new Intent(Intent.ACTION_SEND);   
    shareIntent.setType("text/plain");   
    shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "App name");
    shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "");
    startActivity(Intent.createChooser(shareIntent, "Share via..."));

Upvotes: 1

Views: 651

Answers (1)

gruszczy
gruszczy

Reputation: 42208

I don't know about Pinterest, but for Facebook it seems like a known issue, that it doesn't accept those intents.

Facebook provides it's SDK though: https://github.com/facebook/facebook-android-sdk

My guess is Pinterest does the same, since they also provide their SDK: https://developers.pinterest.com/android/

Upvotes: 3

Related Questions