[AC-2691] Attachment to Ti.UI.emailDialog does not work in Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-06-24T22:00:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | parity |
Reporter | Jörgen Buder |
Assignee | Daniel Sefton |
Created | 2013-06-24T11:06:10.000+0000 |
Updated | 2016-03-08T07:41:48.000+0000 |
Description
I am using the Ti.UI.EmailDialog to create a email to send with one attachment, in iOS it works, I can even add more than one image or file and they all show up and can be send, but in Android I cannot get any attachment to GMail or any internal email account software to work, I have tried in different phones and and SDKs, as well as tried to use older Android SDK like 2.3.3., latest tested is 4.0.3. Documentation says it should work for Android as well...
I should add that I have configured the email client in my phone and tried both that one and the GMail client but without success, I have also tried to find this answer on Q&A but do not really find anyone that solved attaching image to android email . .
Please attach a simple runnable test case that we can drop into an app.js to reproduce your problem. Thanks!
After hours of investigation I found out that on iOS it is possible to have a file name : 34:56:67 but on Android the colon ":" is not permitted, however I had no idea. And when I do a var date = new Date() I get it in the form Mon 23 June 23:23:12 CEST 2013, and so I cannot add the date to the filename of a Android file without exchanging the : to something else... :( Can I tell Date to output something without : ?? Quesiton now is: Is this REALY a Android limitation, or is it Titanium limitation? Since I teach Titanium it would be great to know, thanks..
Colons are certainly not allowed on most OSs. I wouldn't ever include a colon or anything other than underscores or dashes in filenames.
*date.js:* https://github.com/appcelerator-developer-relations/Forging-Titanium/tree/master/ep-012/datejs *How to change Date Format:* http://developer.appcelerator.com/question/118768/how-to-change-date-format
Ok, thanks, yet it works just fine in iOS... ;) I will close the ticket..