I am trying to create an intent that would match the following test intent filter :
<intent-filter>
<action android:name="com.android.testApp.app.testAction"/>
<action android:name="com.android.testApp.app.testAction_2"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="com.android.testApp.app.testCategory" />
</intent-filter>
The intent resolution rules state that if intent doesn't contain any action, it can pass the action test, as long as the intent filter contains at least 1 action.
Also, all categories in intent must be present in the intent filter.
I created the following intent :
Intent intent = new Intent();
intent.addCategory("com.android.testApp.app.testCategory");
startActivity(intent);
However, this intent can't pass the intent filter. Can some one point out why ?