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. Changing LandScape to Potrait mode

Hi,
I have a an application which is having some UI items like Buttons Radio
Buttons etc.
I want to change through code from landscape to portrait mode.
I did  by calling the method
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
But my UI items totally disturbed some of the i am unable to see.
What care i need to take for this
Any one can give me any documents or any help

Thanks in advance

-- 

2. Can I create a sticky dialog?

Hi.

I have an app that performs an asynchronous login as part of its
startup sequence.  This  eventually displays a list of items.

A separate thread performs integrity checks on a database on the
sdcard during the startup sequence.  If something is unexpected, I do
a sendBroadcast() that triggers a showDialog() on my base activity
class.  This asks the user on how to react to the unexpected event.

My problem is: this dialog disappears as soon as the startup sequence
finishes and displays the list of items.  Is it possible to make my
dialog stay on top no matter what?

Best regards,
Henrik

-- 

3. How to alpha fade all Canvas drawing?

4. RadioGroup over two columns or rows?

5. Caller ID ON/OFF

6. Developing UI for Android apps

7. Battery Motorola BP6X, Nexus One & EB