Android Question Adding multiple email attachments

MotoMusher

Active Member
Licensed User
I am currently sending email via intent successfully. I have to a add a number of attachments in a loop. Only the last attachment in the loop is currently sending. Any ideas?

B4X:
In.PutExtra("android.intent.extra.STREAM", CreateUri("file://" & File.Combine(tmpFilePath, t )))


Sub CreateUri(uri As String) As Object
  Dim r As Reflector
  Return r.RunStaticMethod("android.net.Uri", "parse", Array As Object(uri), Array As String("java.lang.String"))
End Sub
 
Top