i am trying to send an email with a sound attachment.
The sound file is in my resource directory(res/raw/)
I am able to send the mail along with attachment but when i download it from the mail...there is no extension to the attachment.
Anyone knows what went wrong in my code??
Uri fileuri = Uri.parse("android.resource://com.example.myapp/"
+R.raw.mysound);
Intent msg = new Intent(Intent.ACTION_SEND);
String[] recipients = {};
msg.putExtra(Intent.EXTRA_EMAIL, recipients);
msg.putExtra(Intent.EXTRA_TEXT, "Sending mail");
msg.putExtra(Intent.EXTRA_SUBJECT, "plz check attachment");
msg.putExtra(Intent.EXTRA_STREAM, fileuri);
msg.setType("audio/mp3");
startActivity(Intent.createChooser(msg, "Email Testing"));

