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. What the heck is a "task" ?

In several parts of the API is mentioned the term "task":
* the singleTask activity launch mode,
* a flag to use with intent,
* other activity manifest flags
* getTaskID in Activity
* ActivityManager.RunningTaskInfo
and so on...

I checked the documentation but I didn't found any clear definition of
what is exactly a task.

I have several issues with relaunching activities with the desired
state and onNewIntent not called and I think it's because I don't
understand what is a task and how to manage this...

Someone can provide a definition a task and how to manage them ?

2. AudioRecordThread: buffer overflow... can it cause problems?


I'm trying to record audio from the mic. I have succeeded with doing
that, but have one question.
In the log in Dalvik debug monitor i get the following message:
Tag: AudioFlinger      Message: AudioRecordThread: buffer overflow
But I don't get what it means. Some kind of buffer overflow of course,
but what kind of problem can it cause?
The recording works fine and I have no problem with running my
application, but can it cause me problem later?

Thx in advance


3. org.apache.http tutorial?

4. I get "unknown error" when opening simple TCP Socket

5. How to get the disk space using Android?

6. Example of Scroll bar

7. how to do animation in popupwindow??