在Android的信息和电子邮件的意图? [英] Messaging and email intents in Android?
本文介绍了在Android的信息和电子邮件的意图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经搜索谷歌这一点,但只找到类似的例子 - 不正是我需要的。我只是需要从我与已填充的到领域的应用程序启动消息(SMS)和电子邮件意图。所以,我需要发送一些与SMS意图和电子邮件意图的电子邮件地址。任何帮助将是AP preciated。
I've searched Google for this, but have only found similar examples--not exactly what I need. I simply need to start messaging (SMS) and email intents from my app with their "to" fields already populated. So I need to send a number with the sms intent and an email address with the email intent. Any help would be appreciated.
推荐答案
有关电子邮件的一部分:
For the e-mail part :
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {"foo@bar.com"});
emailIntent.setType("text/plain");
startActivity(Intent.createChooser(emailIntent, "Send a mail ..."));
这篇关于在Android的信息和电子邮件的意图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文