I think the easiest way is to use Intent.
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
i.putExtra (Intent.EXTRA_EMAIL, new String[]{"Email Address"});
i.putExtra (Intent.EXTRA_SUBJECT, "Email Title");
i.putExtra (Intent.EXTRA_TEXT, "Email Content";
try {
startActivity (Intent.createChooser (i, "Sending Email...");
} } catch (android.content.ActivityNotFoundException ex) {
Toast.makeText (MyActivity.this, "No email address," Toast.LENGTH_SHORT).show();
}
© 2025 OneMinuteCode. All rights reserved.