I have to be honest this is a question which is at present academic but I have searched extensively and cannot find anyone who describes the answer. It even caused me to have an awful night's sleep last night as it manifested itself in me dreaming about continually trying to find a white puppy but I was always unable to find the puppy. So you see, this is both technically and mentally a pretty serious issue.
So,
Let's say I have a Task stack of 3 activities, A, B, C. A has launch mode "singleTask", and let's make activities B and C launch mode "standard".
So, Task 1 is
A -> B -> C
Let's say I have a second Task which is composed of just 2 activities, X (the root activity with launch mode "standard") and a 2nd activity which is actually Activity A.
So, Task 2 is
X -> A
**Question : When activity X invokes activity A (which is defined launch mode "singleTask", what happens to the children of activity A on Task stack 1 (ie B and C) ??? When I invoke activity A, from activity X, do I end up with back stack : X -> A -> B -> C (ie activity C becomes displayed)
Or
X -> A (ie the previous children of Task A are removed from the front of the back stack)
Also, regardless of the answer above, if I were to "BACK" key all the way back through the stack for Task 2, what happens to the original Task 1's stack. Has it now become gobbled up by Task 2 and so no longer exists ?
I want to go for a big run today so the thought of another night searching for the white puppy is rather depressing.
Any response or a link would help.
The example given on the Android Dev section covers how ancestor activities of the "singleTask" activity are "merged" into the back stack of the Task which invokes the "singleTask" activity but unfortunately it does not describe what would happen to the children of the "singleTask" activity.
Many thanks in advance ladies and gents.
Paul.