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. Error while initializing applications/services

Hi All,

I tried to bring up Froyo on Hawk board, I was able to do it from the Kernel
and File System provided Core Druid
However when I boot with the File System built from the sources I am getting
an error.
Freeing init memory: 148K
Warning: unable to open an initial console.
init: /init.rc: 70: invalid command 'copy'
init: /init.rc: 71: invalid command 'copy'
init: /init.rc: 154: invalid option 'ioprio'
init: /init.rc: 159: group option accepts at most 6 supp. groups
init: /init.rc: 159: invalid option 'ioprio'
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/sh', disabling 'console'
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
init: cannot find '/system/bin/vold', disabling 'vold'
init: cannot find '/system/bin/netd', disabling 'netd'
init: cannot find '/system/bin/de{*filter*}d', disabling 'de{*filter*}d'
init: cannot find '/system/bin/rild', disabling 'ril-daemon'
init: cannot find '/system/bin/app_process', disabling 'zygote'
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
init: cannot find '/system/bin/installd', disabling 'installd'
init: cannot find '/system/etc/install-recovery.sh', disabling
'flash_recovery'

Can any one give some pointers on fixing this.

Thanks
Srinidhi

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website:  http://www.***.com/ 

2. Can I stop background apps from causing GC and eating up CPU?

Hi all,

In looking at some performance issues for a game I'm developing I came
across some interesting facts.
Although I've minimised GC caused by my app, other apps can still
cause one.
Also, during framerate drops in my game, I've noticed things like the
weather service, email checked, etc.
going nuts in the background. (This is on Android 1.6).

I don't really want to block incoming calls, i.e. go into flight mode,
before the game starts.
I think it's important for the game to be interrupted if there's an
incoming call.
However, while playing, I don't think people care about weather
updates, email updates, texts, etc.

Is there an interface that will let me control what is "active" in the
background and what should be "suspended"?

cheers,
kk.

-- 

3. How do I provide my own image capture tool?

4. Launching an activity with the task affinity of the phone application

5. Activity won't display on Motorola Milestone

6. Sample Application to query a website and get data

7. fail sent sms di x8