Hi at all,
I am trying to start the default email client with some pre-compiled
html text inside body, but I am not able to do so, this is a sample of
my code:
Intent email = new Intent(Intent.ACTION_VIEW);
email.setType("text/html");
StringBuilder uri = new StringBuilder("mailto:");
uri.append("&body=").append(Uri.encode("<html><body><br/><br/><b>"
+this.cardbase.getName()+"</b> - "
+this.panorama_input.get(position).getTitolo()+"<br/><i>"
+this.cardbase.getCountry()+">>"+
this.cardbase.getCity() +">>"
+ this.cardbase.getCategory() +"</i><br/>"
+this.panorama_input.get(position).getPhophotographer()+"<br/><br/
><img src=\""
+this.panorama_input.get(position).getUrl_thumb()
+"\"><br/>"+"<br/>View this image on your
iPhone,<a href=
\"http://itunes.apple.com/us/app/aroundertouch/id335574325?mt=8\">
get This App</a><br/>View This panoramic image on"
+"<a href=
\""+getResources().getString(R.string.VT_info_email_link_arounder_website)
+"\">Arounder</a></body></html>"
));
Uri.encode(getResources().getString(R.string.VT_info_email_subject)));
email.setData(Uri.parse(uri.toString()));
startActivity(email);
But I can only see an email with the html code isn't interpreted!
Anyone knows a solution?
--
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