Victor Odiah
Victor Odiah

Reputation: 1081

Android Activity: ACTION_SEND

when using ACTION_SEND to send emails, is there a way to check if result was successful?

here is my code sample:

 Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
    emailIntent.setType("plain/text");
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,
            new String[] { "[email protected]" });
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
            "Subject of the Mail");
    emailIntent.putExtra( android.content.Intent.EXTRA_TEXT,
            "This is my sample Mail");
    startActivity(Intent.createChooser(emailIntent, "Email:"));

Upvotes: 1

Views: 685

Answers (1)

lordoku
lordoku

Reputation: 1112

Based on this posting: Get Mail Sent Notification in onActivityResult "Android" it sounds like the problem is that there is no guarantee that the client responsible for handling the intent is going to setActiviyResult, so there's no one way to get it. You'll have to check to see if the client that is handling the intent will send back a status.

Upvotes: 1

Related Questions