On May 16, 11:33 pm, Dianne Hackborn <hack...@android.com> wrote:
> As I said in another thread, if you want to switch apps you need to use the
> exact same Intent that you used originally to start the task.  If you don't,
> then you are launching a new activity instance for that new Intent.
>
> If you want to match what a home screen launches, then you need ACTION_MAIN,
> CATEGORY_LAUNCHER.

Thank you Dianne, that helps a bit, but here is what I am seeing
happen:

- launch app via LAUNCHER icon, bringing to you activity "A".  Task
stack == A

- navigate to another activity (call it "B") in same task.  Task stack
== A-->B

- hit HOME button

- launch app again via LAUNCHER icon.  Task stack is now == A-->B-->A
(see next item)

- the app is not resuming to activity "B", even thought the LAUNCHER
re-launched the app with the same Intent as the first time.  the app
is resuming back at "A".  The activity stack looks like this at that
point:   A-->B-->A, which is very counterintuitive to me, since the
Task documentation seems to infer you should resume the app where it
left off.

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