I've noticed some strange behaviour with resuming a task from a Home
icon.

Very easy to replicate, just create a new bare bones android project
using eclipse, don't need to add anything. Then follow these steps:

1. In eclipse, Run the project on a emulator or device.
2. Once the app installs and launches the first activity, press Home
key.
3. Launch the app again by pressing its icon.
4. Press Back key.

Now this part seems wrong, you'll go back to the original activity in
the stack, instead of the Home screen, even though its been previously
launched and what you expect is it to bring back the stack as it was
left, with one activity. If you repeat steps 2-3, it will just keep
adding the same activity to the stack. That is until you press Back
all the way through the stack to the Home screen.

Now this behaviour will never again replicate. It will be the correct
(?) behaviour of bringing back the stack history at the state it was
when Home was pressed. Note there are no behavioural modifications,
this is just a default application. However, I tried many combinations
of launchModes and stack clearing, they had no effect on the first
run.

Unless I'm interpreting the documentation wrong, when the user presses
the Home key, the task is moved in to the background and simply
brought back the next time they press the app icon? Why is the app
icon altering the task it creates, if it already exists (with no flag
modifications)?

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