This is just an issue with how ADT launches the application, effectively
under a different identity so resulting in two instances running if you also
try to launch it from home.

On Thu, Jul 23, 2009 at 10:22 PM, adamphillips12
<[email protected]>wrote:

>
> 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)?
>
> >
>


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