a.) values of member variables of my Activities must be considered
invalid after Activity.onDestroy(), even if the hosting process was
not killed
b.) since static variables belong to the *process* and not to the
Activity (even if they're defined in the class of an Activity), their
values are retained even when all Activities were killed (but the
process was not killed)
c.) I should never rely on point b) though. Instead, in the
Activity.onCreate methods, I should re-initialize these static
variables.
Let's assume activity "A" starts activity "B" (in the same process,
same app), and "B" is in the foreground now. Is it possible for "A" to
get an onDestroy while "B" is active (foreground)? Because in that
case, when "B" finishes (and returns its result to "A"), "A" will be
recreated i.e. will start from onCreate().