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. URL commands when calling Youtube through Intent

The standard Youtube URL commands (&loop, &rel, etc) do not seem to
work when calling Youtube via an INTENT from inside the android
application.  The videos play fine, Youtube app comes up fine, but the
additional URL commands don't appear to work.  Is there another set of
commands I should be using or are commands simply ignored using
Youtube in this manner.  Also, is there any documentation on the
interface from android to the Youtube app available on the net?



2. Activity lifecycle and static variables ....

I just ran into a situation where it looks like a static variable
reference is persisted across activity sessions.  I didn't expect that
because I thought that when an activity exits, it's de-referenced and
garbage collected.

I am wondering if anyone can shed some (more) light on when the VM
eliminates object references for Activities and Services and in
particular when static variables get reset to default values?


Richard Schilling
Root Wireless


3. Activity lifecycle and static variables ....

4. How to run the program on the new SAMSUNG GALAXY under windows XP

5. Wow. Why isn't the 1.5 emulator working...

6. PhoneFactory.getDefaultPhone from apps other than PhoneApp

7. EditTextPreference: Cannot edit text