Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lifecycle when starting another Activity #3

Open
landakram opened this issue May 13, 2014 · 1 comment
Open

Lifecycle when starting another Activity #3

landakram opened this issue May 13, 2014 · 1 comment

Comments

@landakram
Copy link

First of all, this is awesome. Spotted it in Android Weekly, and it is much more comprehensive than the lifecycle diagram in the Android docs.

It would be awesome to include the order of lifecycle events when another Activity is started. According to the docs, the order of events in a single application is well defined:

  1. Activity A's onPause() method executes.
  2. Activity B's onCreate(), onStart(), and onResume() methods execute in sequence. (Activity B now has user focus.)
  3. Then, if Activity A is no longer visible on screen, its onStop() method executes.

However, I haven't verified this myself (or seen the info reproduced anywhere else).

@xxv
Copy link
Owner

xxv commented May 14, 2014

@landakram Included in this repo is a quick app that just logs all the lifecycle events (the entry and exit from the callbacks). With a little tweaking, you could verify it those lifecycle events.

This diagram is for what happens within an individual Activity. It may be interesting to have what you're describing, but it'd need to be a separate diagram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants