title: How can I share multiple files via an Intent?
body: <p>Here is my code, but this is for a single file solution.</p>
  
  <p>Can I share multiple files &amp; uploads like I do for single files below?</p>
  
  <pre><code>Button btn = (Button)findViewById(R.id.hello);
  
      btn.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(Intent.ACTION_SEND);
  
                  String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/pic.png";
                  File file = new File(path);
  
                  MimeTypeMap type = MimeTypeMap.getSingleton();
                  intent.setType(type.getMimeTypeFromExtension(MimeTypeMap.getFileExtensionFromUrl(path)));
  
                  intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
                  intent.putExtra(Intent.EXTRA_TEXT, "1111"); 
                  startActivity(intent);
              }
          }); 
  </code></pre>