Android SEND_MULTIPLE images are not received by some applications while others work fine
Newbie android developer here, first time I tried my hand at Java. I have extensive amateur programming experience, but most of it is limited to highly arcane languages and platforms nobody in their right mind would use, so I can't say I feel at home.

I have made an app that receives a SEND_MULTIPLE of JPEG images, processes them, creates copies in the same location, feeds each file to MediaServer so that it will show up in the gallery, and then immediately SEND_MULTIPLEs the entire batch of copies as URIs in an ArrayList<Uri> to another receiver. Everything works fine, except for sending multiple. Here's how I do the latter:


   				ArrayList<Uri> Uris = new ArrayList<Uri>();
   				
   				for (String filename:results) {
                                        // Calling a mediascanner wrapper.
   		   			scanner.seed(filename);
   		   			scanner.scan();
   		   			Uris.add(Uri.fromFile(new File(filename)));
   				}
   				// Now to send the batch intent...
   				
   				Intent sendCleanImage = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);  
   				sendCleanImage.setType("image/jpeg");  
   				sendCleanImage.putParcelableArrayListExtra(Intent.EXTRA_STREAM, Uris);
   				startActivity(Intent.createChooser(sendCleanImage, getString(R.string.send_menu_header_multiple)));
   				
I have discovered that while they do immediately show in gallery and can be sent into GMail, native Messaging app, etc, with no issues, in particular, Google Plus complains that images must be locally stored (???) and won't receive the batch. Created images also won't show up in it's picture selector. Google Plus correctly receives a single picture URI in a SEND, however.

I can't seem to find any fault with my code, so it appears there's something else I'm not doing that I should be doing for this work seamlessly with Google Plus, and maybe other picky applications. What?
Android SEND_MULTIPLE images are not received by some applications while others work fine
===

Newbie android developer here, first time I tried my hand at Java. I have extensive amateur programming experience, but most of it is limited to highly arcane languages and platforms nobody in their right mind would use, so I can't say I feel at home.

I have made an app that receives a SEND_MULTIPLE of JPEG images, processes them, creates copies in the same location, feeds each file to MediaServer so that it will show up in the gallery, and then immediately SEND_MULTIPLEs the entire batch of copies as URIs in an ArrayList<Uri> to another receiver. Everything works fine, except for sending multiple. Here's how I do the latter:


   				ArrayList<Uri> Uris = new ArrayList<Uri>();
   				
   				for (String filename:results) {
                                        // Calling a mediascanner wrapper.
   		   			scanner.seed(filename);
   		   			scanner.scan();
   		   			Uris.add(Uri.fromFile(new File(filename)));
   				}
   				// Now to send the batch intent...
   				
   				Intent sendCleanImage = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);  
   				sendCleanImage.setType("image/jpeg");  
   				sendCleanImage.putParcelableArrayListExtra(Intent.EXTRA_STREAM, Uris);
   				startActivity(Intent.createChooser(sendCleanImage, getString(R.string.send_menu_header_multiple)));
   				
I have discovered that while they do immediately show in gallery and can be sent into GMail, native Messaging app, etc, with no issues, in particular, Google Plus complains that images must be locally stored (???) and won't receive the batch. Created images also won't show up in it's picture selector. Google Plus correctly receives a single picture URI in a SEND, however.

I can't seem to find any fault with my code, so it appears there's something else I'm not doing that I should be doing for this work seamlessly with Google Plus, and maybe other picky applications. What?