O'Reilly logo

Learning Android Intents by Wajahat Karim, Muhammad Usama bin Aftab

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test components of an intent filter

Filters are the representative of action, data, and category field of an intent object. Whenever an implicit intent is called, it is tested against these filters in order to get executed. If that intent does not fulfill any one of the test components, it will not be executed, or rather, it will be directed to a separate intent filter of the same activity (if it exists).

Now, in order to have a proper understanding of the intent filters, we need to go through a step-by-step evaluation of each test component associated with the intent filter. There are three test components present:

  • Action test
  • Data test
  • Category test

Action test

Action describes what kind of action is to be executed by the coming intent. The AndroidManifest.xml ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required