ITeye博客

android错误些许

lufengdie · 2011-03-08 20:10 · 移动开发 · Markdown

如果将多个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的时候,会出现提示 并且退出应用 ,如下图:

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。