If you want to open only an email application with the email address of the addressee already completed just use this
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("mailto:" + url));
startActivity(intent);
If not the android page indicates using this form, more complete
public void composeEmail(String[] addresses, String subject) {
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("mailto:")); // only email apps should handle this
intent.putExtra(Intent.EXTRA_EMAIL, addresses);
intent.putExtra(Intent.EXTRA_SUBJECT, subject);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
}
Website of the Android Developer:
https://developer.android.com/guide/components/intents-common.html?hl=pt-br#Email
You want to attach some file too?
– Arubu
no. I just want to send a text, only!
– Renatão Alves