private void sendMail(String mailID) { Intent emailIntent = new Intent(android.content.Intent.ACTION_SENDTO, Uri.fromParts("mailto", mailID, null)); startActivity(Intent.createChooser(emailIntent, "Send mail...")); }
This will help u, http://nishantvnair.wordpress.com :) On Dec 28, 10:47 am, umakantpatil <umakantpat...@gmail.com> wrote: > Hi, > I have an article and I have given share button. On click of it. I have > below code. > > Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); > emailIntent.setType("text/html"); > emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject for > email"); > emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "This is text > line..."); > startActivity(Intent.createChooser(emailIntent, "Email to Friend")); > > Problem with this code is, I tested on my HTC Desire and Wildfire. It shows > all email like gmail and mail but it also shows bluetooth in the list. > I dont want bluetooth to be there. It should only show email apps > > How can i do that ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en