okay, if the system decides to kill your activity, it won't call it.
but what i'm seeing is really weird.  I have an activity stack A, B
(with B being on top / visible).  When I hit back on B, i get to
activity A, but onStop is never called.  Now, when I hit back on A, I
go back to the home screen, and then B's onStop (and then onDestroy)
is called.

The other strange thing is that if from activity A, i do a
startActivity on activity B, it won't start it; i think my activity B
is in some wonked out state.

On Oct 7, 7:55 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
>   See here:
>
> http://developer.android.com/reference/android/app/Activity.html#Acti...
>
> onPause is guaranteed to be called, but onStop/onDestroy is not.
>
> If Android needs memory after your activity has been paused, it may kill
> your process. This happens without invoking any callbacks.
>
> -- Kostya
>
> 07.10.2010 18:51, sdphil пишет:
>
>
>
> > it should at least call onStop -- because the activity is no longer
> > visible.
>
> > On Oct 7, 7:10 am, Prakash Iyer<thei...@gmail.com>  wrote:
> >> It is not required that an onPause is always followed by onStop - in fact 
> >> if
> >> you press the home key that's what I have seen as the default behavior. 
> >> This
> >> way if the user goes back to your app, thru the home key press or from
> >> launchpad, the onResume will be called and it will all be much faster than
> >> doing an onCreate which would otherwise have been required.
>
> >> On Thu, Oct 7, 2010 at 10:06 AM, sdphil<phil.pellouch...@gmail.com>  wrote:
> >>> I am seeing an issue where when I hit the "back" button, I get the
> >>> onPause call, but it isn't followed by onStop and onDestroy.
> >>> On most phones, I see this, but on one particular phone (Droid-X), I
> >>> don't....
> >>> Any ideas?
> >>> tia.
> >>> --
> >>> 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<android-developers%2bunsubscr...@googlegroups.com>
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/android-developers?hl=en
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

-- 
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

Reply via email to