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. Can we charge some external stuffs for a paid Android Market game

As someone else pointed out to me, there isn't just one market available to
the Android platform...

If I were you, i'd put a demo on Google's market, and advertise it for sale
on another market that allows you to sell content how you want to. At the
same time, I would file an issue on the market forums explaining my

But then if I were you, then you'd be me, and you'd use MY body to get a
MMORPG on the Google market.

Personally, I think this argument is fairly thin, when considering that apps
like SnapTell and link to sites that sell content outside the
market. I think its mainly legalise put in place so Google can watch its

already, which is reasonab...
I agree with you ...
Imagine a dungeon MMORPG, where I want to buy a sword (real money).
I can't imagine one app by item in the game you can buy loooooooool.

It's a pity !
Android has all you can desire to do MMORPG (with external content and

I hope there will be some changes in the market rules to take care of
this case.
Why not a paypal bouton on my external site but in version : pay by
checkout google simply.
Then all would pass through the android market (google checkout) ...


--~--~---------~--~----~------------~-------~--~----~ You received this
message because you are su...


2. How to launch C program application at start-up


We are trying to launch C program application (for example,
Helloworld) at start-up on ARM-based target board.

We copied the application in /system/bin and modified the init.rc
script to add the entry of the application in "on boot". But, still,
the application does not launch at the start-up.

Modifications in init.rc look like this:

on boot
#calling helloworld
service helloworld /system/bin/helloworld

Any suggestions on fixing the issue can be helpful.
Thanks and Regards,


3. Can I add Linux Driver on the Gphone when I bought it?

4. Surfaceflinger in cupcake

5. How to show my ProgressBar

6. How to test camera on android

7. Multiplayer game