I’ve build my project as .apk file and then I installed it into my device.
My step is:
1) Press an icon in app drawer, the Main Activity was started.
2) Press some action to go to Second Activity
3) Press Home Button
4) Press icon again
My expectation is the Second Activity should be resume but it just relaunch Main Activity.
How can I fix that I have tried set LaunchMode as
android:launchMode=”singleTask”
android:launchMode=”singleTop”
but it doesn’t work.
Here is my setting in Manifest.xml file
<activity
android:name=".auction.MySplashScreen"
android:configChanges="orientation"
android:label="@string/app_name"
android:launchMode="singleTask"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Looking form your manifest file,Your problem is due to android:launchMode property set by you.You should set it as default or you can also avoid to set it.Using this way your desired behavior can be obtained.