2013-02-27 27 views
1

我正在一個應用程序,並剛剛意識到它不顯示在最近的應用程序列表。安卓 - 我的應用程序不顯示在最近的應用程序列表

我在應用程序中有2個活動,無論我點擊Home鍵時該應用程序是在最近的應用程序列表中顯示的。

我看到這個問題:SO Question但把類別的東西放在清單中並沒有爲我工作。

下面是我的清單的一部分:

<application android:label="@string/app_name" > 

    <service android:name=".UploadService" android:exported="false" /> 
    <service android:name=".DownloadService" android:exported="false" /> 

    <activity android:label="@string/app_name" 
     android:excludeFromRecents="true" 
     android:screenOrientation="portrait" 
     android:name="com.test.DOHSMain" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

    <activity android:name="com.test.DOHSChange" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <category android:name="android.intent.category.DEFAULT" /> 
     </intent-filter> 
    </activity> 
</application> 

沒有人有任何知道我做錯了嗎?

注意:我在第二個活動DOHSChange上添加了標籤,以防萬一會有幫助,但是有那條線或者沒有看起來什麼都不做。從你的清單

回答

6

擺脫Android系統。

+0

Godamn什麼是白癡,是否是在默示的默認東西或我不知何故複製它? – poncho 2013-03-01 01:18:31

+1

:) ......不,默認情況下不存在 – wraith 2013-03-01 18:05:37

2

excludeFromRecents = 「真正的」 你在你的發射活動具有android:excludeFromRecents=true

感謝您的時間

+0

謝謝我是個白癡:) – poncho 2013-03-01 01:21:50

相關問題