views:

176

answers:

1

doesnt show the html format in outlook. please do reply me. sorry for the english

private void sendEmail() { try { String value = "" + "" + "Name " + "anroid" + "
" + "" + "Version" + "2.2" + "" + ""; Intent email_intent = new Intent(Intent.ACTION_SEND); email_intent.setType("text/html"); email_intent.putExtra(Intent.EXTRA_SUBJECT, "android Details"); email_intent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(value)); email_intent.setType("vnd.android.cursor.dir/email"); startActivity(Intent.createChooser(email_intent,"Sending mail..")); }catch(Exception e) { } }

A: 

You have two setType() calls. Eliminate the second. Leave the email_intent.setType("text/html") there. See if that helps.

CommonsWare
i remove the second type. i got the same output
saravanan palpandi