Hi,
I have a problem about taskAffinity of Activity.
Activities A and B with the same taskAffinity.
A starts B with FLAG_ACTIVITY_NEW_TASK and the B starts A with
FLAG_ACTIVITY_NEW_TASK again.
Dumpsys activity of system gives us task stack like below:
TOP-> A
B
A
According to SDK's reference to FLAG_ACTIVITY_NEW_TASK, the result is
supposed to be like below:
TOP -> A
B
If we did not set taskAffinity, A will not be created again but in
different task stack from B. (A and B are in different Apps)
After a little more research, we found FLAG_ACTIVITY_REORDER_TO_FRONT
is what we want.
My question is whether SDK' reference to FLAG_ACTIVITY_NEW_TASK is
wrong?
Thanks,
James
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en