简体   繁体   中英

Titanium - emailDialog not supported on Android Emulator?

I am trying to use the emailDialog provided by the Titanium api's. But, it shows an unsupported action or 'No apps can perform this function : Send'.

Then on checking, my device returns False for isSupported call.

var emailDialog = Titanium.UI.createEmailDialog();
    alert(emailDialog.isSupported());
    emailDialog.setSubject('Hello from Titanium!');
    emailDialog.setToRecipients(['saurav.xxxxxx@live.com']);
    emailDialog.setCcRecipients(['saurav.xxxxxx@outlook.com']);
    emailDialog.setMessageBody('Appcelerator Titanium Rocks!');

    emailDialog.open();

My target API level is 18 and i am testing it on an android emulator.

Any help in resolving the issue will be much appreciated.

Thanks in advance.

Regards, Saurav

Open the Email app, and configure an account with it. Until you do that, you can not register and use EMAIL intents on the emulator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM