android - email not working in samsung galaxy s
<p>I want to open android default email client directly. It's working in most of the devices except "Samsung Galaxy S". Actually the problem is i set the subject and body of the email in the coding this was effected in the most of the devices but it's not effected in samsung galaxy s. Here an empty compose mail opened.  what can I do to make it work?</p>

<p><strong>Code</strong></p>

<pre><code>btn.setOnClickListener(new OnClickListener(){

    @Override
    public void onClick(View arg0) {
            // TODO Auto-generated method stub
            Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); 
            emailIntent.setType("text/html");
            List&lt;ResolveInfo&gt; resInfo = getPackageManager().queryIntentActivities(emailIntent, 0);
            if (!resInfo.isEmpty())
            {
                for (ResolveInfo info : resInfo) 
                {
                    System.out.println("info.activityInfo.packageName:"+info.activityInfo.packageName.toLowerCase());
                    System.out.println("info.activityInfo.name:"+info.activityInfo.name.toLowerCase());
                    if (info.activityInfo.packageName.toLowerCase().contains("mail") || info.activityInfo.name.toLowerCase().contains("mail")) 
                    {
                        emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Allergy Journal");       
                        emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My Allergy Journal Body");                                 
                        emailIntent.setPackage(info.activityInfo.packageName);   
                        startActivity(Intent.createChooser(emailIntent, "Email:"));   
                    }
                } 
            }

    }});
</code></pre>
