Reputation: 3325
Suppose i have 3 Activities A, B, & C.
If i go A->B->C then if i hit the recent apps button it is not showing the latest screen in the recent apps lists which should be C. However if i press Home button and then press the recent tasks is shows the Activity C. Then works fine. But then again if i got from C->B->A then again if i press the Recent tasks it shows the Activity C which should be Activity A.
i cant find the pattern of this must be some thing with the Manifest file
<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>
Upvotes: 0
Views: 1299
Reputation: 3325
So i figured out the answer after few tries...i have set
<item name="android:windowIsTranslucent">true</item>
in my theme which causes the problem. i removed it and it works fine.
Upvotes: 1