tags:

views:

137

answers:

1

Hi, i am using android code with html tag.. but in mail getting same html tag please help me how can i send html link ... the code is giving below

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/html"); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {"[EMAIL PROTECTED]"}); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject"); *emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Example");* context.startActivity(Intent.createChooser(emailIntent, "Send mail..."));

A: 
sendIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml("<a href=\"" + link_val + "\">" + text_value+ "</a>"));
Praveen Chandrasekaran
i used this code... when i send mail from email of android got plain text at the place of text_value...
Shalini Singh
one thing more i am getting the proper output from gmail account....
Shalini Singh
it should works.but i have no guess about your problem.
Praveen Chandrasekaran
yes it's working but from gmail account, when i am sending any data from my gmail account then i can access html links. but when i am sending same html data through email option of intent chooser then only getting plain text instead of html link.
Shalini Singh
if you got the answer or idea accept your answer. your accept rate is 0. you didnt accept your answer . nobody will respond to you.
Praveen Chandrasekaran
well i got the solution:...... emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html .fromHtml(body));
Shalini Singh