I am trying to embed a hyperlink to my app in the Android Market in an
email Intent.  In other words I have a button on my app that creates
an email the user can send to a friend.  In the email I want a link to
the Android Market such as:

<a href=\"market://search?q=pname:com.startechplus.iCricket\">iCricket
Trick</a>

When I try the code below I don't get a link in the email I get the
complete text above.  I have done this on the iPhone successfully but
I have greater control over the encoding of the body.  How do I get
Android to do this?

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "Download <a href=\"market://
search?q=pname:com.startechplus.iCricket\">iCricket Trick</a> from the
Android Market and have fun with your friends.");
sendIntent.putExtra(Intent.EXTRA_SUBJECT,"Have fun with the iCricket
app!");
sendIntent.setType("message/rfc822");

try {
      startActivity(Intent.createChooser(sendIntent, "iCricket
Message"));
} catch (android.content.ActivityNotFoundException ex) {
      Log.e("iCricket","Problem Here!");
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to