Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String to = EditText1.getText().toString();
- String subject = EditText2.getText().toString();
- String message = EditText3.getText().toString();
- Intent email = new Intent(Intent.ACTION_SEND);
- email.putExtra(Intent.EXTRA_EMAIL, new String[]{ to});
- email.putExtra(Intent.EXTRA_SUBJECT, subject);
- email.putExtra(Intent.EXTRA_TEXT, message);
- // precisa configurar tipo de email
- email.setType("message/rfc822");
- startActivity(Intent.createChooser(email, "Selecione um App de email :"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement