Sometimes we are seeing the following behaviour: - Activity A is launched - Activity A starts Activity B - Activity B is used for a while, it can be a few minutes or a few hours - Activity B finishes - Activity A is then destroyed and recreated
Why is Activity A being destroyed and recreated, instead of just being restarted (call to onRestart(), onStart(), onResume())? I could understand it if ActivityA had been destroyed some time ago, but what we see from the logs is that AFTER ActivityB.onPause() gets called, ActivityA.onDestroy() is called and then a new instance of ActivityA is created. This isn't due to an device orientation change, as the manifest for both activities contains android:screenOrientation="nosensor" and we can't reproduce the behaviour by changing the device orientation. The problem isn't reproducible, but we get logs from users where we can see this behaviour, so we know it is happening. Anyone have an idea why this is happening? This doesn't happen all the time, just occasionally. The usual behaviour is the expected behaviour (ActivityA just gets resumed). Thanks, -DWass -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

