Dynamic IntentFilters

by Jonathan Herriott » Mon, 13 Apr 2009 21:49:10 GMT

Sponsored Links
 So, I have an instance where I want applications to be able to
dynamically specify what subset of data objects in my ContentProvider
they want to receive intents for.  The issue is that since it isn't
known at compile-time, I want them to be able to specify at runtime,
so I can query for the activities that implement the intent filter for
a specific data object and display that list.  I know Android allows
dynamically registering Receivers, so would it be possible to allow
dynamically registering Activities for specific IntentFilters in the
framework?  Is this too much of a security issue to allow?

Dynamic IntentFilters

by Dianne Hackborn » Mon, 13 Apr 2009 21:57:48 GMT

 Currently the contents of a manifest are static, and you can't change these
(even receivers) at runtime.  Receivers are a little bit of a special case
because you can dynamically register additional receivers while your app is
running -- but these only exist while your app is running, and are
completely independent of the receivers in the manifest (and work a little
differently from them, too).

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Sponsored Links

Other Threads

1. struct proto in /net/ipv4/tcp_ipv4.c


I am a kernel newbie. Saw the following struct in linux kernel /net/

struct proto tcp_prot={

.name = "TCP",
.owner = THIS_MODULE,

each field name starts with a dot, ends with a comma (,) instead of
semicolon (;),  this doesn't look like a C struct, what is it? Thanks.


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

2. The $50,000 Android Phone



This message was sent by eko.m...@gmail.com via http://addthis.com.  Please 
note that AddThis does not verify email addresses.

Make sharing easier with the AddThis Toolbar:  

"Indonesian Android Community [id-android]" 

3. Handle GONE in RelativeLayout

4. Help need for writing the asound.conf file Sigma 8654

5. Logitech Harmony Link Turns Your Phone Into the Ultimate Remote

6. How to add shadow for text drawn on google map

7. How to get the point from click the google map