Assume this activities flow: A->B->[C]. Current active activity is [C]
If there is an interruption (phone call, home button, etc) [C] is stopped
Later it will be restarted, unless Android kills entire app process
So steps in [C] lifecycle are pause->stop->(phone call)->restart->start->.... I miss few, this is not important; the important thing is that Android does not kill [C] instance
Question is when can it happen that Android will kill Activity (destroy), but keep app process alive?
tnx
The process life cycle is not tied to the Activity life cycle.
You can have many Activities within one Application - your Application tends to stick around until the system runs low on memory or the user kills it. Roughly speaking, your Application life cycle is similar to the process life cycle.
Activities on the other hand can be destroyed by the system quite often.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.