Hi My application works like this.
StartUpActivity starts first, which makes a lot of init elements. Then it starts TvbTabActivity (TabActivity), which has other actions as tabs (like BrowseActivity).
The problem I see is this: when the killer application is used to terminate my application on the TvbTabActivity / Browse tab and the application restarts again, the system refuses the normal flow (StartUpActivity is not created) but instead restores the last visible activity directly (TvbTabActivity).
How to make Android ALWAYS start StartUpActivity so that it initializes the application?
Obviously, I do not have this problem when my application crashes on its own, lol, due to an exception, and restarts again.
<application android:icon="@drawable/appicon" android:label="@string/app_name" android:name="com.xyz.QPApplication" android:debuggable="true"> <activity android:name=".activity.StartUpActivity" android:configChanges="locale|orientation" android:label="@string/app_name" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".catalogue.BrowseActivity" android:configChanges="locale|orientation" android:label="@string/app_name" android:screenOrientation="portrait" android:launchMode="singleTop"> <intent-filter> <action android:name="com.xyz.android.intent.action.BROWSE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".activity.TvbTabActivity" android:configChanges="locale|orientation" android:screenOrientation="portrait" android:launchMode="singleTask"> </activity>
source share