I wrote a simple application for viewing images. However, after sending the image with the general intention:
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("URLSTRING"));
shareIntent.setType("image/jpeg");
mActivity.startActivity(Intent.createChooser(shareIntent, "SHARE"));
The image can be sent successfully if I selected Google Hangout. But after that he leaves!
Tested with another file explorer application, and this is the same behavior!
However, the sent image with the GooglePlusGallery application does not look like this problem.
What is this trick? How to avoid image deletion?
source
share