2017-08-09 59 views
0

假設我有3個活動A,B,& C.「最近的應用程序」或「總覽屏幕」沒有顯示我的Android應用程序最近的活動?

,如果我去A-> B-> C,那麼如果我打的最近使用的應用按鈕,它沒有顯示在最近的應用程序列表中的最新的屏幕,應該是C.但是,如果我按主頁按鈕,然後按最近的任務是顯示活動C.然後工作正常。但如果我再次從C-> B-> A然後再次按下最近的任務它顯示活動C應該是活動A.

我無法找到這種模式必須是一些東西與清單文件

<application 
     android:name=".App" 
     android:allowBackup="true" 
     android:icon="@mipmap/logo_main" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/themex"> 

     <activity 
      android:name=".SplashScreen" 
      android:screenOrientation="portrait" 
      android:theme="@style/SplashTheme" 
      android:windowSoftInputMode="stateAlwaysHidden"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

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

     </activity> 
     <activity 
      android:name=".StartingActivity" 
      android:screenOrientation="portrait" 
      android:theme="@style/theme1" 
      android:windowSoftInputMode="stateAlwaysHidden" /> 
     <activity 
      android:name=".MainActivity" 
      android:screenOrientation="portrait" 
      android:theme="@style/themex" 
      android:windowSoftInputMode="stateAlwaysHidden" /> 

</application> 
+0

發佈您的清單代碼 –

+0

@MuraliPrajapati添加了您正在測試的Android版本文件 –

+0

?到目前爲止, –

回答

0

所以我想出答案後,試了幾次......我在我的主題這將導致問題設置

<item name="android:windowIsTranslucent">true</item> 

。我刪除它,它工作正常。

相關問題