目前我公司在Android应用程序的工作,创建邮件作曲屏幕,所以我试图创建一个邮件筛选作曲家我的水平最好的,但我不知道,如何使这个屏幕?请任何一个指导我。
Currently i am working in Android application, To create mail composer screen so i tried to create a mail composer screen my level best, but i didn't know, how to make this screen? please any one guide me.
由于提前
我试过这样:
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL,new String[] { "yourid@gmail.com"});
email.putExtra(Intent.EXTRA_SUBJECT,"Contact Us");
email.putExtra(Intent.EXTRA_TEXT, text field here);
email.setType("message/rfc822");
startActivity(Intent.createChooser(email, "Choose an Email client :"));
结果:
您可以自动使用低于code为
显示这类您的设备上的画面。 撰写邮件
的android
You can use below code for the compose mail
android automatically
display this kind of the screen on your devices.
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL,new String[] { "yourid@gmail.com"});
email.putExtra(Intent.EXTRA_SUBJECT,"Contact Us");
email.putExtra(Intent.EXTRA_TEXT, text field here);
email.setType("message/rfc822");
startActivity(Intent.createChooser(email, "Choose an Email client :"));
试试!祝你好运。
Try ! Good Luck.
上一篇:通过使用actionbarsherlock创建Android的底栏actionbarsherlock、Android
下一篇:如何调用Android中使用PhoneGap的一个asp.net web服务PhoneGap、Android、asp、web