---
title: "android错误些许"
author: "lufengdie"
date: "2011-03-08T20:10:49Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2011-03-08T20:10:49Z"
id: 947026
url: "https://lufengdie.iteye.com/blog/947026"
---

如果将多个Activity的action  name属性配置相同的话，系统会有个有意思的提示，
 特此记录。

   如下面代码：

  
```java

 
              <!-- 人员盘查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的时候，会出现提示 并且退出应用 ，如下图：

    
  
![](http://dl.iteye.com/upload/attachment/431821/6370e5ef-a7c7-3c8e-8d71-53b92f48efe3.jpg)