Very much by definition, a single ask activity is always at the root of a
stack.  Anyone who launches that activity is forced to launch a new task, so
the activity can't be anything but the start of a new task.
I don't know enough about what you are doing or seeing to help any more, but
there really should be no way to have such an activity embedded inside of a
task.

On Wed, Sep 16, 2009 at 12:53 AM, RickardF <[email protected]>wrote:

>
> Hi all,
> In the documentation (http://developer.android.com/guide/topics/
> manifest/activity-element.html#lmode) it is stated that an activity
> with launchMode="singleTask" is always at the root of the sctivity
> stack. However,  when I run my "singleTask" activity for a few
> scenarios and monitors behaviour with "adb shell dumpsys activity" I
> can see it placed both at the top of the stack (with numActivities=2)
> and in the middle of the stack (with numActivities=3).
> The activity at the root (frontOfTask=True) has a "normal" launchMode.
>
> Is the documentation incorrect or am I missing something?
>
>
> Thanks,
> Rickard
>
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to