title: Share mp3 via whatsapp, Android
body: <p>I'm developing an application that has to share a mp3 file via whatsapp.</p>
  
  <p>My code at this moment is the following:</p>
  
  <pre><code>final Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
  shareIntent.setType("audio/mp3");
  shareIntent.setPackage("com.whatsapp");
  Uri recurso = Uri.parse("android.resource://com.yayo.yayobotonera/" + R.raw.audio1);
  shareIntent.putExtra(android.content.Intent.EXTRA_STREAM, recurso);
  startActivity(Intent.createChooser(shareIntent, getString(R.string.text1)));
  </code></pre>
  
  <p>I can successfully share via Gmail, for example, but it's not working via whatsapp. Is that a problem of my code or just that whatsapp doesn't allow you to share mp3 files?</p>
  
  <p>Thanks in advance!</p>