Question

I did quite a reading about Android recently and I came across something that confuses me. The problem is in what occasions it is appropriate to instantiate the IntentFilter class?

I'm aware of the the model that Android uses AndroidManifest.xml and how Android matches intents against the declared filters, but I still cannot figure out what would be a proper usage of IntentFilter class?

I doubt that it is for dynamic declaration of filter in run-time..

Can you, palls, help me figure out what would be a proper usage of an IntentFilter instance in an application?

Thanks!

Was it helpful?

Solution

An IntentFilter is for a BroadcastReceiver to know which intents to receive.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top