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. How to get JUnitReports via android.test.InstrumentationTestRunner

I'm not familiar with JUnitReports, but one way you could do this is
to parse the results outputted by 'adb shell am instrument -r -w ...",
and convert it into whatever XML format you needed.

There is existing parsing code in the Android open source project at
development/testrunner and
you could use as a library.



2. Bitmap.Compress.JPEG always saving with low compression level

Hi Guys,

Im trying to save a bitmap in a JPEG format, and i can see that the
image is always stored with a lower quality even if i give the
compression level as 100, however for PNG it is working fine.

SImilaarly during Media.insert() or getContentResolver().insert() the
image is stored with a lesser wuality, I can see in that the
compression level is 50 in the, however i tried to create
my own method for the same function with quality 100, but still im
facing the same problem, any help on the same?


3. How to support multiple language key character mapping

4. why glReadPixels return Alpha always -1

5. ListView onListItemClick to Create a Context Menu?

6. Click on Status bar notification switch to task in current state?

7. Close Application