Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-837] Android: Allow multiple attachments to EmailDialog

GitHub Issuen/a
TypeNew Feature
Resolution Date2012-02-08T12:26:32.000+0000
Affected Version/sRelease 1.6.2
Fix Version/sSprint 2011-25, Release 1.7.2, Release 1.8.0
ReporterBill Dawson
AssigneeBill Dawson


#821 added support for EmailDialog and addAttachment() but only one attachment can be handled. iPhone supports multiple.

Starting point to investigate:
http://blog.blackmoonit.com/2010/02/filebrowser-send-receive-intents.html"> http://blog.blackmoonit.com/2010/02/filebrowser-send-receive-intent...


  1. Thomas Huelbert 2011-04-15

    This will cause the KStest Email Dialog to fail (will not attach sound file)

    1.BaseUI>Views>Email dialog
    2.select an image when prompted, add a valid email you can check and send
    3.check sent email

    results: text and image are sent, cricket.wav file was not sent.

  2. Pedro Enrique 2011-05-09

    We have a professional customer that needs this fixed ASAP and is asking if it could be prioritized. Helpdesk ticket #8758
  3. Bill Dawson 2011-05-13

    By looking at the default Android email app#s source code (I was looking at android-2.1_r2), I can see why this doesnt work in that app. If you have multiple attachments (using Intent.ACTION_SEND_MULTIPLE and intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris) ), the attachments will only get added if they are content urls -- no file:// urls get attached.
  4. Bill Dawson 2011-05-24

    Pushed to and tested with 1_6_X as well. See api doc update for limitations with Android "MAil" app (the free, open source email app that is also on some handsets): https://github.com/appcelerator/titanium_mobile/blob/1_7_X/apidoc/Titanium/UI/EmailDialog.tdoc#L45
  5. Bill Dawson 2011-06-23

    Pushed to 1_7_X
  6. Michael Pettiford 2012-02-08

    Closing issue Tested with Ti Studio build Ti Mob SDK 1.9.0.v20120207171634 OSX Lion 10.7.2 Nexus S OS 2.3.6 Tested with KS test to verify expected behavior and email was sent with multiple attachments correctly
  7. Wilson Luu 2012-02-08

    Updating comment

JSON Source