I have two activity in my application. I intent from A to B and then put my application in background but when i relaunch the application it starts form Activity A not maintains it state of Activity B.
Activity A & Activity B declaration in android manifest :
<activity
android:name=".ActivityA"
android:configChanges="keyboard|orientation|screenSize"
android:hardwareAccelerated="true"
android:label="vishal"
android:theme="@style/CustomActionBarTheme" />
<activity
android:name="ActivityB"
android:configChanges="keyboard|orientation|screenSize"
android:hardwareAccelerated="true"
android:label="vishal"
android:theme="@style/CustomActionBarTheme" />
I havent used any flags. I have used startActivityForResults().