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. DTMF on ongoing call........

Hello everyone,

I am working on one android application... I want to send DTMF tone on
ongoing call....after googling i saw in some post that right now its
not possible... is android build any api for froyo? Normally using ","
I can send DTMF but after call establish how to do? How by default
Dialer is able to send DTMF on ongoing call...HTC also build there own
Dialer..Then How they are doing?

Thanks & regards
Arindam Ghosh


2. Avoiding compression on large files

Apparently you can't have a file in "assets" larger than 1MB (except
for certain file types) because it's considered too large to

But I'm finding mixed info about how to circumvent this limitation.
Some say that you can put the files in "raw" and avoid the limitation
but others say that files in "raw" are compressed too.  And there's
the -0 aapt option that can be used to turn off compression for
certain file types, but there's no way to specify aapt options in

I realize that I can break the file into pieces, but that's error-
prone on both ends.  And using one of the known uncompressed file
types not only confuses things but also runs the risk that the Android
PTB will decide to start compressing that file type.

So what are my options really?


3. Can I post text to facebook profile from my android application?

4. Cannot install apk of huge size

5. VLC RTSP MPEG-4 stream to Android emulator.

6. Cannot share audio file by MMS, and how to solve this case?

7. loading an html file from local res directory