Hi, I am facing a problem with the launch of activity mode as "SingleTop".I have four activities A,B,C,D which are declared as "SingleTop".Also I have a activity X from which these activities are launched.X is declared as "SingleTask".
Now the use case scenario is: I launch activity X and from there activity C.From Activity C goto activity Y and there press the Home key and got the home screen and from there again launch activity X and then C. To launch C , I have use the flag intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); But observed that instead of launching the same instance , first onDestroy() of C gets called followed by onCreate() of Activity C which is not as per my expectation. I expect that onResume() will be called for activity C. Am I doing anything wrong or this is the desired behavior? Note: I have not implemented onNewIntent() API in my class. Thanks, Shekhar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en