0

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().

  • Can you show how you've declared the activity B in the manifest also how are you starting the activity B ( i.e using which flags) ? – Shobhit Puri Feb 16 '15 at 05:32
  • What you are seeing is not standard behaviour. You may be seeing this nasty Android bug: http://stackoverflow.com/a/16447508/769265 To test that theory, please force stop your app, then start it from the list of available applications and see if the problem is still there. – David Wasser Feb 16 '15 at 17:34

0 Answers0