"最近的应用"或"概述屏幕"是不是在Android上显示我的应用程序的最近活动?

时间:2017-08-09 14:40:05

标签: android

假设我有3个活动A,B和&下进行。

如果我去了A-> B-> C然后如果我点击最近的应用程序按钮,则它不会显示最近的应用程序列表中应该是C的最新屏幕。但是如果我按下主页按钮然后按最近的任务是显示活动C.然后工作正常。但是如果我从C-> B-> A获得然后再次如果我按下最近的任务它会显示活动C,它应该是活动A.

我发现这个模式必须是Manifest文件的一些东西

<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>

1 个答案:

答案 0 :(得分:0)

所以我在几次尝试之后想出了答案......我已经设定了

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

在我的主题中导致问题。我删除它,它工作正常。

相关问题