[TIMOB-837] Android: Allow multiple attachments to EmailDialog
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-08T12:26:32.000+0000 |
Affected Version/s | Release 1.6.2 |
Fix Version/s | Sprint 2011-25, Release 1.7.2, Release 1.8.0 |
Components | Android |
Labels | n/a |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T02:37:32.000+0000 |
Updated | 2012-02-08T12:26:32.000+0000 |
Description
#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...
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.
We have a professional customer that needs this fixed ASAP and is asking if it could be prioritized. Helpdesk ticket #8758
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.
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
Pushed to 1_7_X
Closing issue Tested with Ti Studio build 1.0.8.201201262211 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
Updating comment