Friday, September 16, 2011

Send an Url link to mail through aplication

String mailBody="Hello. I think you’d really enjoy this:"+
                "<a href='www.google.com'> Serach Engine   </a>"+//Serach Engine  +"<br/>"+

                "<br/> Name : <br/>"+
                "<br/> Ingredients"+"<br/>"+"<br/>";


                Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
                emailIntent.setType("text/html");
                emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Serach Engine");
                emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml(mailBody));                       
                startActivity(Intent.createChooser(emailIntent, "Send mail..."));   

No comments:

Post a Comment