My app normally works just fine, until I face a strange problem on specific device. There are 2 activities in App. After I start ActivityB inside of ActivityA, ActivityA starts
I do not see any problem in this behaviour.
In case you wish to preserve the state of ActivityA
, make use of the methods onSaveInstanceState
and onRestoreInstanceState
. See Activity Lifecycle at http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle for more details.
See also https://stackoverflow.com/a/10492967/332210 for a deeper understanding.