Yep, or make both A and B 'singleTop'.
On Dec 19, 12:01 am, Doug <[email protected]> wrote: > I'm not sure what exactly you're trying to do, but if you want to > return to A from B, just finish B and the user will go back to A > automatically. > > Doug > > On Dec 15, 9:35 pm, kong <[email protected]> wrote: > > > > > I have two activities A and B,They are transparent. B uses mediaplayer > > to play video. > > > A to B use startActivity(intent); > > > then B plays the video.Then use startActivity(intent) to A. > > I found B's state is pause. > > > But then I use startActivity(intent) from A to B. B's state is > > onCreate, onStart,Then onResume. I think it's unnecessary to use > > oncreate to create the UI and initalize the mediaplayer. Because B is > > on the background.It's just pause.And from graph of activity's life > > cycle, we can see the activity can from pause to resume state. > > > But how to do it?Can anyone help?- Hide quoted text - > > - Show quoted text - -- 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

