It would be more accurate to say that onStop is *supposed* to be
called whenever HOME is pressed.  In 2.1, this does not happen:

http://code.google.com/p/android/issues/detail?id=6094#c0

Cheers,
Steve


On Jun 5, 7:59 pm, Mark Murphy <[email protected]> wrote:
> guich wrote:
> > Thanks. I got that the onStop event is called when the home key is
> > pressed.
>
> onStop() is called any time the activity is no longer visible. Hence,
> onStop() will be called for:
>
> -- HOME
> -- BACK
> -- you starting another activity
> -- the user choosing a notification from the drawer
> -- an incoming phone call
> -- etc.
>
> > As a side question, is there a way to discover the name of the intent
> > that called another intent? Like a stack trace of intents.
>
> No, sorry.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

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

Reply via email to