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 does it work controlling mouse and keyboard with android phone via wifi?

There are several apps that are able to control mouse and keyboard
from cell phone through wifi, anyone knows how it works?
I wanna make one myself. Thanks~


2. How to add new Library or module in Android 2.2 kernel


I am very new to Android programming.I am trying to add a module in
Android Froyo kerkel. Can anybody help me out in this,plaese let me
know which all file I need to change for this integration.

For Example: I have a folder caled 'Test' which contail a 'C' file
test.c and a make file 'Makefile'. I need to inegrate this folder into
Android kernel folder.

Please let me know what all I need to write in my Makefile and how can
I check whether my module is working or note.

Below is the code of my test file test.c..

#include <linux/module.h>
#include <linux/config.h>
#include <linux/init.h>

static int __init mymodule_init(void)
 printk ("My module worked!\n");
        return 0;

static void __exit mymodule_exit(void)
 printk ("Unloading my module.\n");


I was trying to get these printk statements in 'adb logcate'. But it's
not coming. Please help me out in this integration.

Thanks in Advance..


B. Hirawat


3. Can not decode high resolution picture

4. ROM kitchen

5. Changing Media Player Proxy - RTSP

6. Testing classes of a project from another

7. external or usb mic for audio recording?