Shekhar wrote: > I have a basic querry.suppose all the three activities are declared > as singletop and suppose from activity A i call > B activity with intent flag as > > i.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); > startActvity(i) > > and from B->C the same intent.Now if i call the activity Aor B from C > with the same intent flag .will the oncreate() function of A,B will be > called again?
Possibly. Those activities might have been destroyed (e.g., to free up RAM). > If not then it means that the A,B,C are there in the application stack > and their old instance is called again? Am I right? AFAIK, yes. However, bear in mind that the user can press the BACK button, which will destroy an activity, regardless of singleTop or whatever. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Online Training: 10-14 May 2010: http://onlc.com -- 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

