I still don't get it ;-(
I have the top level activity, let's call it A, that is used by the launcher
and have the android:clearTaskOnLaunch attribute set to true. A drills down
to B and B to C.
Now when I am on activity C and switch to Gmail and back to my app/task then
C is up.
If I launch the task activity A is displayed not C, which is what I want.
But when pressing Back on A I get to A again. That doesn't seem right to me.
Shouldn't A have been cleared too, so that Back would return me to the
launch screen?

On Fri, May 8, 2009 at 5:08 PM, Mariano Kamp <[email protected]> wrote:

> Isn't that the same model that is used on the Desktop?Launching an app
> usually puts you in a clean state, but switching back to a running instance
> (Alt/Cmd+Tab) brings you to the screen of the app you were most recently 
> on.That makes perfect sense to me.
>
> Actually now that I learned about android:clearTaskOnLaunch [use in
> contacts<http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=AndroidManifest.xml;h=71a90eb3b6f4d1a7285a462d0965aeb6660506ca;hb=HEAD#l149>]
> here, I can finally try to get my app to behave like I would expect it to.
>
> This discussion is very enlightening. Dianne that would be a great topic
> for a blog post of yours, wouldn't it? ;-)
>
> On Fri, May 8, 2009 at 3:07 PM, Mike Hearn <[email protected]>wrote:
>
>>
>> > As far as contacts goes, though, this is actually intentional -- some
>> apps
>> > (like contacts and settings) want to put the user back to their front
>> door
>> > when relaunched from home, so they set the option to do that.  This is
>> > actually a "desired" inconsistency.
>>
>> Right, I realise it's intentional. What I'm unclear on is, why these
>> apps are special? I presume usability testing revealed this is the
>> behavior users expected. In which case why not reset task stacks for
>> every app?
>> >>
>>
>

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