Android 使用 Intent 发送 email,androidintent,Intent i = n
分享于 点击 46670 次 点评:134
Android 使用 Intent 发送 email,androidintent,Intent i = n
Intent i = new Intent(Intent.ACTION_SEND); //i.setType("text/plain"); //模拟器请使用这行i.setType("message/rfc822") ; // 真机上使用这行i.putExtra(Intent.EXTRA_EMAIL, new String[]{"test@gmail.com"}); i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here"); i.putExtra(Intent.EXTRA_TEXT,"body goes here"); startActivity(Intent.createChooser(i, "Select email application."));//该片段来自于http://byrx.net
用户点评