有什么方法可以在 google 上 post 多张图片并使用 ACTION_SEND

Is there any way to post multiple image on google plus using ACTION_SEND

我正在开发一个 Android 应用程序,我在其中从 Url 获取图像。我必须在 Google+ 上分享不止一张图片。一张图片工作正常。请建议。 我正在使用以下代码和平。

    Intent shareIntent = new Intent(Intent.ACTION_SEND);
                        shareIntent.putExtra(Intent.EXTRA_SUBJECT, curentWit.getWit_name());
                        shareIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(shrd).toString());
                        if(isInLine == 1)
                        {
                            shareIntent.putExtra(Intent.EXTRA_STREAM, uris.get(0));
                        }
                        shareIntent.setType("text/plain");
startActivity(shareIntent);

我不知道 GooglePlus 是否允许您同时发送多张图片。但是如果你想同时发送多张图片(假设你正在发送电子邮件)那么你应该使用 Intent.ACTION_SEND_MULTIPLE 而不是 Intent.ACTION_SEND

这就是我通过电子邮件发送多张图片的方式。

Intent shareIntent = null;

if(uris.size > 1) {
    shareIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);
    shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
}
else {
    if (uris.size() == 1) {
        shareIntent = new Intent(Intent.ACTION_SEND);
        shareIntent.putExtra(Intent.EXTRA_STREAM, uris.get(0));
    }
}
shareIntent.setType("image/*");
shareIntent.putExtra(Intent.EXTRA_SUBJECT, curentWit.getWit_name());
shareIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(shrd).toString());

startActivity(shareIntent);