Android Question Adding multiple email attachments

Discussion in 'Android Questions' started by MotoMusher, Mar 19, 2015.

  1. MotoMusher

    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?

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


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

    NJDude Expert Licensed User

    Are you setting the action as: "android.intent.action.SEND_MULTIPLE"?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Why don't you use the Email object from the Phone library?
     
  4. MotoMusher

    MotoMusher Active Member Licensed User

    I had been using intents, I don't think there was a particular reason. That email object works well. Thanks.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice