如果将多个Activity的action name属性配置相同的话,系统会有个有意思的提示,
特此记录。
如下面代码:
<!-- 人员盘查Index 页面 --> <activity android:name=".SQJW.personCheck.Index" android:label="@string/sqjw_homeperson" android:screenOrientation="portrait"> <intent-filter> <action android:name="action.personCheck_Index" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <!-- 人员盘查列表 页面 --> <activity android:name=".SQJW.personCheck.PersonCheckList" android:label="@string/sqjw_homeperson" android:screenOrientation="portrait"> <intent-filter> <action android:name="action.personCheck_Index" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <!-- 人员盘查详细 页面 --> <activity android:name=".SQJW.personCheck.PersonCheckDetail" android:label="@string/sqjw_homeperson" android:screenOrientation="portrait"> <intent-filter> <action android:name="action.personCheck_Index" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
当访其中任意一个Activity的时候,会出现提示 并且退出应用 ,如下图:
