2011-08-27 58 views
0

我有一個奇怪的問題。在三星Galaxy Tab中安裝.apk文件時出現奇怪的問題

我在我的Mac機中有我的.apk文件,我通過藍牙將該文件發送到我的Galaxy Tab。當我安裝的文件,該應用程序被安裝,但我得到了相同的應用程序的許多實例...

而且當我unintsall應用程序,所有應用程序實例被刪除

,因爲我在android系統對於新手發展,請幫我解決這個問題。

感謝所有幫助

這是我的清單文件

<application android:icon="@drawable/co_logo" android:label="@string/app_name"> 
    <activity android:name="com.co.sampling.Loading" 
       android:theme="@android:style/Theme.NoTitleBar" 
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" 
       > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.CoDb" 
       android:theme="@android:style/Theme.NoTitleBar"     
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity>    
    <activity android:name=".Login" 
       android:theme="@android:style/Theme.NoTitleBar" 
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

    <activity android:name="com.co.sampling.OrderPrompt" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity>    
    <activity android:name="com.co.sampling.New_Order_Screen_1" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.New_Order_Screen_2" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.Enrich_Order" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.Customer_Feedback" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.Prompt" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.Enrich_Order" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.Enrich_Order_List" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.PopupMenu" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name="com.co.sampling.Order_NewOrder_2" 
       android:theme="@android:style/Theme.NoTitleBar"    
       android:label="@string/app_name" 
       android:screenOrientation="landscape" 
       android:configChanges="orientation|keyboardHidden" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity>    
</application> 

+0

當我點擊該文件時,它問我想要安裝嗎?我按是的...這個我做的012 – user198725878

+0

是的當卸載所有的實例得到刪除 – user198725878

+0

嗨...請幫我起來 – user198725878

回答

1

這些線

<intent-filter> 
     <action android:name="android.intent.action.MAIN" /> 
     <category android:name="android.intent.category.LAUNCHER" /> 
    </intent-filter> 

應僅存在於主活動標籤中。從所有其他活動標籤中移除。

添加此意圖過濾表明,該活動是應用程序的主要活動,並應在啓動器(應用程序抽屜)上市

0

我想告訴你的是,機器人:標籤只應存在於應用程序標記,而不是其他地方。