0
リストのURLリンクからアルバム画像を共有します。複数の画像を共有するURLからaction_send_multiple android
public void shareImg(ArrayList<String> arrUrl, String name) {
ArrayList<Uri> imageUris = new ArrayList<Uri>();
for(String path : arrUrl /* List of the files you want to send */) {
File file = new File(path);
Uri uri = Uri.fromFile(file);
imageUris.add(uri);
}
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris);
shareIntent.setType("image/*");
startActivity(Intent.createChooser(shareIntent, "Share images to.."));
}
しかし、それは実行しないで、ここに起こった何: はここに私のコードです。私を助けてください。すべてに感謝します。