here I am trying to share multiple image in email.i have done following code.
Intent shareIntent = new Intent();
shareIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {"chirag.solanki@gmail.com"});
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "That's Testing of list");
shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imgUri);
shareIntent.setType("image*//**//**//**//*");
startActivity(Intent.createChooser(shareIntent, "Share images to.."));
all are working fine but attachment getting null.why this happend that I don't know please help me if any one have any feasible solution.
Note :: Image Store in Server not in Local.Image path is like follwing
image path :: http://first.com/list/project_images/thumb/55c068d54eafb1438673109.jpg
here imgUri is ArrayList of URI
我会这样(使用Uri.parse对我有用):
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(photoPath));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.