Open landakram opened 10 years ago
@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.
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:
onPause()
method executes.onCreate()
,onStart()
, andonResume()
methods execute in sequence. (Activity B now has user focus.)onStop()
method executes.However, I haven't verified this myself (or seen the info reproduced anywhere else).