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. Image+TextView+radiobutton in spinner

First, I want to imitate the effect like

which is TextView+radiobutton

but either the getView() or getDropDownView only cares about one row
at a time, while the whole radiobuttons in spinner is like one
RadioGroup, and when dropdown view is opened, the radiobutton with
which item is selected before must be checked.

so how can I imitate the layout like simple_spinner_dropdown_item?

Second, I want to add different ImageView in each row, so I can't just
use the default simple_spinner_dropdown_item, I must redefine the

So, is there a best way to get through these?

I like the layout in simple_spinner_dropdown_item, but I also want to
add ImageView...

Please give me any clue at all



2. Does APK always include all classes of a referenced project in build path?

I reference a secondary Java project in my build path. When the APK is
built will it include all of the classes of that project or only the
ones that are referenced from (directly or indirectly) my main project?


3. Sync Nokia Contacts ke Gmail

4. Android: Draw a scalable Rectangle

5. Building Issues

6. Standard Android Music Player

7. Help Needed With Some Layout - UI Problems