Android开发之调用(Call, Dial, SMSManager, Broadcast, Email)
// Write the body of theEmail
String emailBody = "You're password is: ";
// Add attributes to the intent
//sendIntent.setType("text/plain"); // use this line for testing
// in the emulator
sendIntent.setType("message/rfc822"); // use this line for testing
// on the real phone
sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Your Password");
sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody);
startActivity(sendIntent);
}
});