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();
}
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
578 Understanding How to Configure Google API Key
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.