tags:

views:

228

answers:

1

Is it possible to create an IntentFilter in android that matches ALL intents that are Broadcasted on the phone (perhaps by way of using a BroadcastReceiver)? I.E. the ones I see in ddms when I use the phone, under the ActivityManager tag? After digging through the documentation, and looking at the framework source, I am left to think it can't be done? That you must specify some sort of data, to paraphrase the docs, "some sort of data must be specified, or else you'll only get intents with no data". The app I am writing needs to know about every app that is started on the system. So far, the only way I have been able to do this is by polling ActivityManager. It seems the best way would be to have an event driven solution, using whatever underlying logic ActivityManager uses, but it's all greek to me inside of the ActivityManager.java framework source, and seems like a lot of the stuff underneath (if not ALL) is deliberately encapsulated from me.

Any ideas?

+2  A: 

You said it yourself, the documentation quite clearly specifies how intent filters function and that this is not possible to receive all broadcasts.

Neither this nor retrieving task information is something that is supported by the APIs made public in the Android SDK.

Christopher
sad but true, although from peeking in the android source, it looks like some of this stuff has been made public in the newest GIT snapshots
Tom Dignan