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. Enabling taps in ListView

I have a ListView where I've supplied a custom row object.  I can both tap
and long-tap using the hardware track ball (or the Enter key in the
emulator), but these same gestures do not work on the screen.  How do I
enable this?

Thanks in advance,

Dave Orme


2. About GPS Support on Android

Hi All,

I have couple of things to clarify:

1. What are the GPS Applications currently part of Android ?

2. As on Emulator , I am not able to run maps applications as there is no
GPS Driver and hardware connected. How can I use google maps on emulator ?

3. Providing GPS HAL interface gps_get_hardware_interface will be sufficient
to connect GPS Drive with Application Framework and upper application in
Android ?

4. Is there any basic test application for GPS on Android ? not necessary
maps kind of application.

Any more information related to GPS on Android is welcome.


_-_Mayank Rana_-_


3. Can't retrieve page with HttpClient

4. need android source code

5. Amazon MP3 Intent URI

6. SQLite database samples

7. Android & J2ME project