I think I know the answer to this, but I haven't been able to find anything on the B4A site to confirm it.
Let's say I have a Main Activity, and I start a second Activity, Activity2. Also, Activity2 relies on the state of a Boolean (from the Main Activity) in its Activity_Create Sub.
My question is, is there ever a situation in the Activities Cycle where Main will be destroyed but Activity2 will remain alive in memory and could be re-started on its own due to an orientation change, such that that Boolean no longer exists? Or does the Android OS know that Activity2 is associated with the Main Activity, such that if Main is destroyed, Activity2 will also be destroyed?
Let's say I have a Main Activity, and I start a second Activity, Activity2. Also, Activity2 relies on the state of a Boolean (from the Main Activity) in its Activity_Create Sub.
My question is, is there ever a situation in the Activities Cycle where Main will be destroyed but Activity2 will remain alive in memory and could be re-started on its own due to an orientation change, such that that Boolean no longer exists? Or does the Android OS know that Activity2 is associated with the Main Activity, such that if Main is destroyed, Activity2 will also be destroyed?