How Many States Does an Activity Have?
Posted
by
Android Eve
on Stack Overflow
See other posts from Stack Overflow
or by Android Eve
Published on 2010-12-29T15:46:33Z
Indexed on
2010/12/29
15:54 UTC
Read the original article
Hit count: 207
The Activity lifecycle section in the Application Fundamentals tutorial states that there are 3 states:
An activity has essentially three states:
(1. active/running 2. paused 3. stopped)
But then as I continued reading the actual Activity class documentation, the Activity Lifecycle section states that there are 4 state:
An activity has essentially four states:
(1. active/running 2. paused 3. stopped 4. "dropped"?)
Both sources (on the same website) agree about the first 3, but the 4th one is only mentioned in the class documentation and is unnamed.
So, are there really 4 states or only 3?
If there are 4, what is the name of the 4th one?
Please help me understand this discrepancy.
Also, highlighted colored blocks in this beautiful and very informative flowchart don't seem to correspond to the states. Where, in the flowchart, would you mark the 3 or 4 states?
© Stack Overflow or respective owner