title: Share audio file (.mp3) via Facebook, email, and SMS/MMS
body: <p>I have an audio file (.mp3) and some information related to it. I want to share with Facebook, E-mail, SMS/MMS, etc..</p>
  
  <p>What I have done is: when user clicks on the share button, it pops up list of all supported applications that can handle this Intent. But this does not show Facebook and SMS/MMS options.</p>
  
  <p>Here is my code..</p>
  
  <pre><code>public void shareWithFriends(int resId)
  {
      Intent share = new Intent(Intent.ACTION_SEND);
      share.setType("audio/mp3");
      share.putExtra(Intent.EXTRA_SUBJECT,"Ringtone File : "+ getResources().getResourceEntryName(resId)+".mp3");
      share.putExtra(Intent.EXTRA_TEXT,"Ringtone File : "+getResources().getResourceEntryName(resId)+".mp3");
      share.putExtra(Intent.EXTRA_STREAM,Uri.parse("android.resource://com.my.android.soundfiles/"+resId));
      share.putExtra("sms_body","Ringtone File : "+ getResources().getResourceEntryName(resId)+".mp3");
      startActivity(Intent.createChooser(share, "Share Sound File"));
  }
  </code></pre>
  
  <p>Here are some results:</p>
  
  <ol>
  <li><p>When I use MIME type <code>audio/mp3</code>, only the email options pops up. No Facebook and SMS/MMS share.</p></li>
  <li><p>When I use MIME type <code>*/*</code>, Email and SMS options pops up. No Facebook option is there.</p></li>
  </ol>
  
  <p>Here it is interesting to note that when I click on the SMS option, only text appears. I don't see any MP3 file attached (the same thing happens in <em>Whatsapp</em> (as I have <em>Whatsapp</em> installed on my phone). However, when I click on any mail application (for example, Gmail or Yahoo mail) it shows me the MP3 file attached.</p>
  
  <p>Where am I going wrong?</p>