hi,

Before asking my doubt, let me clarify my understanding of
allowTaskReparenting...

Suppose there exists a Task (say Task 1) and this task has an activity
(say Activity 1) which wants to call my Activity (say Activity 2). Let
my activity (activity 2) set the attribute allowTaskReparenting to
true and let my activity have a specific taskAffinity(affinity1). When
Activity1 calls my activity (activity2), my activity becomes part of
the task1. But suppose another task (task2) is already present/created
with the same taskAffinity as mine (affinity1) and an activity in that
task (say activity3) tries to start my activity, my activity gets re-
parented to task2.


Not sure if i was clear enough. If i were to rephrase my words...

If my activity has allowTaskReparenting set to true and an instance of
my activity is already present in task1. If task2 with the same task
affinity as my activity tries to start my activity, the EXISTING
activity gets re-parented from task1 to task2.


My quesions:
(1) Is my understanding correct ?
(2) If I am correct then a single instance of my activity gets shifted
from task1 to task2. So 2 activity objects of my activity are NOT
created. Am i correct ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to