I need to send an email from the user's synced account.
I saw this example:
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/html");
intent.putExtra(Intent.EXTRA_EMAIL, "emailaddress@emailaddress.com");
intent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
intent.putExtra(Intent.EXTRA_TEXT, "I'm email body.");
startActivity(Intent.createChooser(intent, "Send Email"));
But I dont want to use google's aplication, I want to create my own activity to do this.
I can't find any reffernce on how this could be done.
Alternativly if anyone knows how can i get a result(did the user send the mail?) from google's application, that can also solve my problem.