0

Right now when I try to share, the URL is not recognized from Twitter and it displays only the text.

This is my code:

Intent shareIntent = new Intent();
        shareIntent.setAction(Intent.ACTION_SEND);
        shareIntent.setPackage(Constants.SOCIAL_TWITTER);
        shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Sharing URL");
        shareIntent.putExtra(Intent.EXTRA_TEXT, text);
        shareIntent.putExtra(Intent.EXTRA_STREAM, testURL);
        shareIntent.setType("text/plain");

context.startActivity(shareIntent);

I want the tweet to recognize the URL and display image from it as it normally does.

loshkin
  • 1,600
  • 2
  • 21
  • 38

0 Answers0