Will finish() be called every time? so current activity will be totally destroyed (onDestroy() will be called)?
If a application begin with Activity A, A start Activity B, B start C. User click back from C. C will be distroyed? B's onCreate() or B's onStart() will be called? For example, if B needs some data from server, the request should be put in onStart() instead of onCreate. Otherwise, B could not get updated information. Am I correct? On Jan 4, 10:43 pm, "Andrew Stadler" <stad...@gmail.com> wrote: > Unless you've overridden the key handlers, clicking "back" will call > finish() on your activity, which will cause the activity to exit via > the standard transitions. > > The transitions between activities are documented in > <http://code.google.com/android/reference/android/app/Activity.html>. > It's important to be very familiar with them when developing Android > applications. > > On Sun, Jan 4, 2009 at 10:17 AM, cindy <ypu01...@yahoo.com> wrote: > > > My application have several screens, whenuserclicks "back"button, > > it goesbackto next screen. Whichfunctionwill becalled, when it is > >back? > > > I used some static variable to remember globalfunction. I found that > > sometime, the value of those variable has been changed. Do you > > experience the same problem? > > > Thanks! > > > April --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---