Filter Collision
Resolving Intent Filter CollisionIn the Activity Linking section, you learned that the
Filter Collision
android:versionCode=”1”
android:versionName=”1.0”>
<! -- android:theme=”@android:style/Theme.Dialog” -- >
Filter Collision
If you call the startActivity() method with the following intent, then the Android OS will display a selection as shown in Figure.startActivity(new Intent(“net.learn2develop.ACTIVITY2”));
If you check the “Use by default for this action” item and then select an activity, then the next time the intent “net.learn2develop.ACTIVITY2” is called again, it will always launch the previous activity that you have selected.
To clear away this default, go to the Settings application in Android and select Applications ➪ Manage applications and select the application name. When the details of the application are shown, scroll down to the bottom and click the Clear defaults button.