title: How to attach Image and Audio file to E-mail in android?
body: <p>I want to attach Image and audio file to E-Mail.How to do that.I found a lot here on SO but still cannot get the solution of it.I tried a lot.
  Please someone Help me for my this issue.Thanks in Advance.My code is:</p>
  
  <pre><code>Intent email = new Intent(Intent.ACTION_SEND_MULTIPLE);
          email.putExtra(Intent.EXTRA_EMAIL, new String[] {});
          // email.setType("image/png");
          email.setType("*/*");
          email.putExtra(Intent.EXTRA_SUBJECT, TAG);
          email.putExtra(Intent.EXTRA_TEXT,
                  getResources().getText(R.string.Message));
  
          ArrayList&lt;Uri&gt; imageUris = new ArrayList&lt;Uri&gt;();
  
          Uri imageUri1 = Uri.parse("android.resource://" + getPackageName()
                  + "/" + R.drawable.ic_launcher);
  
          // Uri imageUri2 = Uri.parse("android.resource://" +
          // getPackageName()
          // + "/" + R.drawable.twitter);
  
          Uri imageUri2 = Uri.parse("file:///android_asset/Male_Hard_2.mp3");
  
          imageUris.add(imageUri1); // Add your image URIs here
          imageUris.add(imageUri2);
  
          email.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris);
  
          // AssetManager assetManager = getAssets();
          // InputStream inputStream = null;
          // try {
          // inputStream = assetManager.open("Male_Hard_2.mp3");
          // } catch (IOException e) {
          // Log.e("message: ", e.getMessage());
          // }
  
          // Uri uri = Uri.parse("android.resource://" + getPackageName() +
          // "/"
          // + R.drawable.ic_launcher);
          //
          // Uri uri1 = Uri.parse("file:///android_asset/male_hard_2");
          //
          // email.putExtra(Intent.EXTRA_STREAM, uri);
          //
          // email.putExtra(Intent.EXTRA_STREAM, uri1);
  
          startActivity(Intent.createChooser(email,
                  "Choose an Email client :"));
  </code></pre>