Hi everyone ...i need help with a code example of email dialog...ive passed the whole lastnight trying to do a row that when someone clicks it open email dialog...can someone code example and i can guide me thru there??? Please
1 Answer
Accepted Answer
Hi Ronny,
You can create email dialog using the below code, it will work in both iOS and Android
//Email Dialog var emailDialog = Titanium.UI.createEmailDialog(); if(emailDialog.isSupported()) { emailDialog.toRecipients = ['foo@yahoo.com']; emailDialog.subject = "Test subject"; emailDialog.messageBody = "Body text"; //Attachment var f = Ti.Filesystem.getFile('cricket.wav'); emailDialog.addAttachment(f); emailDialog.open(); }else{ alert('Please Configure Email'); }Here you can find more about email dialog http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.EmailDialog
Hope this helps you
http://titaniumtutorial.com/
Your Answer
Think you can help? Login to answer this question!