How to open email composer with attachment in titanium? -


i making application in ios , android using titanium .i want open email composer (having attachment) on button click.can please tell me how can in ios , android.?

thanks

directly documentation. assumes have created button.

button.addeventlistener('click', function(e) {     // create email window     var emaildialog = ti.ui.createemaildialog();     emaildialog.subject = "hello titanium";     emaildialog.torecipients = ['foo@yahoo.com'];     emaildialog.messagebody = '<b>appcelerator titanium rocks!</b>';     // add attachment     var f = ti.filesystem.getfile('cricket.wav');     emaildialog.addattachment(f);     // open window     emaildialog.open(); }); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -