当前位置: 代码迷 >> Android >> android异常些许
  详细解决方案

android异常些许

热度:42   发布时间:2016-05-01 16:34:01.0
android错误些许

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

   
 



 

  相关解决方案