2

Guys i need help i aam facing a very strange problem and I would like to hear your opinion i added a share button to share images. I used

Intent intent = new Intent ();
intent.setType("image/png");
intent.putExtra(Intent.EXTRA_STREAM, imageUri);
startActivity (Intent.createChooser (intent,"Share Using...."));

and it is working perfectly except for one thing if i choose the picture to share then pressed the share button and choose to share via whatsapp or G+ the application loads and the post is created with the chosen image if i backpressed i go back to my app then if i try to share another image and choose whatsapp or g+ both keep showing the old image in the new post and here comes the strange part if i post or send the image the new image is sent to the receipent and not the old image shown in the post. .... any help would be appreciated by the way i have tried using all flags with the intent but the problem persists 

dEv_tO_bE
  • 145
  • 2
  • 12

1 Answers1

0

You need to pass a new Intent every time you want to post a new value, or clear the current object for that matter.

Can you also elaborate on this one, i didn't quite get what you meant:

if i try to share any other image whatsapp and g+ keep showing the old image in the new post and here comes the strange part if i post or send the image the new image is sent to the receipent

Aksaçlı
  • 86
  • 6