Hi All,
Does any body know how to send a zip file as an attachment of an
email?
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Sample");
sendIntent.setType("application/zip");
sendIntent.putExtra(Intent.EXTRA_STREAM,pathtozipfile);
startActivity(Intent.createChooser(sendIntent,"send the mail"));
I tried about snippet.But didnt work.
Anybody tried sending zip file attachments?
Thanks & Regards,
Isuru
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---