use emailIntent.setType("text/plain"); in your code

On Tue, Dec 28, 2010 at 11:17 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Praveena Ankitha

-- 
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

Reply via email to