How to detect whether email is send or not through Application in android?
<p>I have launched email activity from my application ..My problem is how can i know whether Email is sent or not </p>

<pre><code>try {

    Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
    emailIntent.setType("text/html"); 
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Check out this play from http://www.iplaybook.net iPlayBook ");
    emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,"This play was created using&lt;a href='http://www.iplaybook.net'&gt; iPlayBook.&lt;/a&gt;");
    final PackageManager pm = getPackageManager();
    @SuppressWarnings("static-access")
    final List&lt;ResolveInfo&gt; matches = pm.queryIntentActivities(emailIntent, pm.MATCH_DEFAULT_ONLY);
    ResolveInfo best = null;
    for (final ResolveInfo info : matches)
    {
        if (info.activityInfo.name.toLowerCase().contains("mail"))
            best = info;
    }
    if (best != null)
    {
        emailIntent.setClassName(best.activityInfo.packageName, best.activityInfo.name);
        startActivit(emailIntent);
    }
}
catch(Exception e) { }

}
</code></pre>

<p>plz help..</p>
