[英]Multiple image Share in Email
here I am trying to share multiple image in email.i have done following code. 在这里我试图在email中共享多个图像。我已经完成了以下代码。
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. 所有人都工作正常,但附件却变为null。为什么发生这种情况,我不知道如果有人有可行的解决方案,请帮助我。
Note :: Image Store in Server not in Local.Image path is like follwing 注意:::服务器中的图像存储不在本地中。图像路径如下
image path :: http://first.com/list/project_images/thumb/55c068d54eafb1438673109.jpg 图像路径:: http://first.com/list/project_images/thumb/55c068d54eafb1438673109.jpg
here imgUri is ArrayList of URI 这里imgUri是URI的ArrayList
我会这样(使用Uri.parse对我有用):
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(photoPath));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.