0

How can I share images using intent chooser. I have tried

Intent share = new Intent(Intent.ACTION_SEND);
        share.setType("image/png");

        share.putExtra(Intent.EXTRA_STREAM,
          Uri.parse(url));

where url is from internet

I am able to share text using the above code the image doesnt get attached.

user2041902
  • 593
  • 1
  • 6
  • 21

1 Answers1

-1

try doing this instead i think it will work

Uri uri = Uri.fromFile(new File(filename));
share.putExtra(Intent.EXTRA_STREAM, uri);
DjHacktorReborn
  • 2,908
  • 2
  • 20
  • 29