Hi I'm using the following code to send emails with multiple attachments using M4A (should be easily transferable to Java):
Intent intent = new Intent(Intent.ActionSendMultiple); intent.SetType("text/plain"); intent.PutExtra(Intent.ExtraText, "Mail body"); intent.PutExtra(Intent.ExtraSubject, "Mail subject"); DirectoryInfo di = new DirectoryInfo(Android.App.Application.Context.FilesDir.AbsolutePath); List<Android.Net.Uri> fileList = new List<Android.Net.Uri>(); foreach (FileInfo file in di.GetFiles("MyAppLogFile*")) { Java.IO.File myFile = new Java.IO.File(file.FullName); var uri = Android.Net.Uri.FromFile(myFile); fileList.Add(uri); } if (fileList.Count > 0) intent.PutParcelableArrayListExtra(Intent.ExtraStream, fileList.ToArray()); StartActivity(Intent.CreateChooser(intent, "Send email")); This worked fine on ICS devices, but on Jelly Bean, the mail programm still shows the attachments, but they are not being sent. Since the files come from within the protected part of the file system belonging to the app, I suspect that something may have changed with the permission system from ICS (tried on a Galaxy S3) and JB (tried on a Galaxy S3 and Galaxy Nexus - the latter running JB 4.2). Has anybody successfully managed to send emails with attachments on JB where the files to be sent are located in the application directory or a subdirectory thereof? Thanks Stephan -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Send-Email-with-Attachment-changes-between-ICS-and-JB-tp5712532.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid