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
enough.

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)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_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. About Dynamic Voltage and Frequency Scaling In ADP2

I have bought the android develop phone 2. I want to do some research
about
power management on ADP2. But I wonder if ADP2 support Dynamic Voltage
and
Frequency Scaling(DVFS). That means whether we can change the CPU
frequency
dynamically on ADP2. Previously, someone told me that I can rebuild
the
android OS kernel and turn on the user space and then I can set the
CPU
frequency. I have tried to rebuild the kernel just as "
http://source.android.com/documentation/building-for-dream" said. But
I
still don't know how to turn on the user space when built the kernel
and
don't know how to set the CPU frequency on ADP2. Would you kindly give
me
some support on how to dynamically set the CPU frequency on ADP2? I
will
appreciate very very much for your support.

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. FUSE in Android

Hello there,

I wonder know how to develop an application that can use FUSE [http://
fuse.sourceforge.net/] because I wanted to be able to encrypt the data
to be written to the SD card, to implement security on data from the
same SD Card he even being outside the mobile device.

Thank you
Fabio Silva.

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. R3d$4...themes for CM 4.2.15.

4. ada yang mo review huawei u8230

5. Android Map...

6. Change label of a Activity at run-time in Android

7. mohon bantuan untuk HTC Hero