The only 'correction' needed, Roger, is that "backing out" is the wrong term. When Activity A 'calls' Activity B (really, sending an Intent), no "backing out" takes place. "Backing out" is a much more appropriate term for what happens when the user presses the Back key, which causes finish() to be called. This in turn results in onDestroy() being called.
See http://developer.android.com/reference/android/app/Activity.html#onDestroy() to see how the documentation words the same thing I just said above (and see that I am not making things up). See also the description of onBackPressed(), which confirms that finish() is called. On Mar 19, 11:39 pm, Roger Podacter <rogerpodac...@gmail.com> wrote: > No because I don't believe onDestroy would necessarily get called > backing out of the activity. Only onPause would be guaranteed to be > called. That activity's onDestrw would only get called at some random > point in the future when the OS wants more memory. > > OnPause is the primary. At least that is my understanding. I hope > someone corrects me. > > On Mar 19, 3:37 pm, lbendlin <l...@bendlin.us> wrote: > > > If one activity calls another, and when you then press "Back" from that > > activity, wouldn't the calling of onDestroy() assure you that the called > > activity is truly gone and the memory is freed? (Or conversely, if it isn't > > called, the activity may live on due to dangling references?) -- 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