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. Soft keyboard on activity startup

I am struggling trying to have the soft keyboard appear in a search screen,
and from the looks of numerous pleas on various forums, I am not the only
one. I have tried many variants, culling from the byzantine attempts of
those others.

   InputMethodManager imm = (InputMethodManager) getSystemService
   imm.showSoftInput (query, 0);

(for 0, substitute InputMethodManager.SHOW_FORCED or

The problem seems to be that showSoftInput doesn't work from onCreate.

This is a very common need. Surely there is a reasonable solution to this
problem, or is it botched here?

P. V. Nasby

2. How to remove the afterimage of AutoCompleteTextView?

Hi, I'm having a trouble with AutoCompleteTextView.

I keep getting an after image when I use AutoCompleteTextView for my
I put a AutoCompleteTextView widget on the top of the screen, and when
I click it, SIP will pop up, so I can type some text.
Following is the code I used for the test:

public class MultiAutocompleteTest extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
        MultiAutoCompleteTextView textView =
(MultiAutoCompleteTextView) findViewById(;


    private static final String[] RECEIPIENTS = new String[] {
        "aah", "aaah", "aaaah", "aaaaah", "aaaaaah", "aaaaaaah",

R.layout.main has only one MultiAutoCompleteTextView inside of
I didn't set the height of the MultiAutoCompleteTextView, so the
height of it will automatically adjust as I type.

If I keep typing 'a's, at some point, the height of the dropdown view
becomes shorter than the available space, so it will shrink.
At that very moment, I keep getting an after image. This happens all
the time, and I think this is a bug.

If I just fix the height, it won't happen, but I really want that
Is this going to be fixed any time soon? If there's any other way
around, please let me know!

Thank you!!!


3. how to use bootanimaiton.zi

4. install android di open moko

5. 雼奠灔: Null Pointer Excepti on when using a button to change layouts

6. File Browser

7. OOT: Miring Plaza EX (Plaza Indonesia)