intent.action_send and intent chooser

by tnull » Tue, 20 Jul 2010 22:20:44 GMT

Sponsored Links
 When creating an intent with action send to send some data, is there a
way to filter the results that are included in the activity chooser
that is created using Intent.createChooser? I have not seen a way to
do this other than setting the mime type, but it is not flexible

For example, there is a situation when I want e-mail apps to be the
only results in the activity chooser dialog. Setting the type to "text/
html" successfully filters this down to email apps, except when
bluetooth is enabled. Bluetooth appears in the list as well, but this
is not desirable. Surely there is a way to have a little more control
over the results?


intent.action_send and intent chooser

by Mark Murphy » Tue, 20 Jul 2010 22:31:06 GMT


What are "e-mail apps"?

Only on your test environment(s). Anyone can create an application
that supports ACTION_SEND of text/html -- this it not something
exclusive to "e-mail apps". I would not be the least bit surprised if
there are others on certain devices or out on the Market.

Write your own chooser dialog, using PackageManager.

Mark Murphy (a Commons Guy)  |  | 

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!


Sponsored Links

intent.action_send and intent chooser

by tnull » Tue, 20 Jul 2010 23:39:13 GMT

 With e-mail apps, I just meant I was looking to filter the results to
e-mail clients, not necessarily anything that can handle "text/html",
which I realized wouldn't work when bluetooth popped up.

Thank you for the tip on creating my own dialog using PackageManager,
I will look into that.


Other Threads

1. Problem certificat

Hi all
I'm bug ton my Htc Hero, my university use one routeur Cisco, the
routeur I am asked to accept in theory a security certificate the
problem is that under android it does not appear so I can not join the

thank you for your help the problem is very crazy :)
Best regards


2. Why is HTC Hero using drawable-ldpi?

Here is a summary of my manifest:

    <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" /
    <supports-screens android:smallScreens="true"
android:normalScreens="true" android:largeScreens="true"

I was trying to implement the launcher icon by having a 72pixel icon
in drawable-hdpi, 48 pixel in drawable-mdpi, 36 pixel in drawable-

But then I noticed the launcher icon was all fuzzy on the Hero.
Suspecting the ldpi icon had been scaled up, I deleted the drawable-
ldpi folder and placed a 48 pixel icon in drawable. The problem was
then fixed.

I read somewhere else that the Hero uses hdpi, so what's going on!!!?


3. WebView and virtual keyboard

4. Can't build Android SDK

5. Multiline text with elipsis

6. Duplicate ImageView in ListView while using Lazy Loading

7. Making buttons work in a Custom Expanded View (Notifications)?