Misc comments for the whole thread:

(1) Please do NOT use affinities named things like "Affinity.A".  The
affinity is a *global* namespace.  If some other app happens to use that
same name, your two apps will get mixed together.  If you want separate
affinities within your own app use a name like ":affinity1" like we do for
process names etc.

(2) This mechanism is intrinsic to how app switching works (for example
tapping on an app icon in home and bringing the app's task up to the front
in its last state), so it is definitely not just broken.

(3) Make sure you are not setting any of the various flags that cause
activities to be finished when their task is brought to the foreground or
other such thing; this is how you make the task reset when this happens.
 There must be something like that going on, because otherwise you are in
the default case of launching apps from home which definitely does work.

(4) Take a look at any messages printed in the log when switching tasks.
 Especially useful can be the event log (adb shell logcat -b event) which
will have a log for every activity that gets finished and the reason it is
finished.

On Sun, May 15, 2011 at 6:53 PM, Eric <e...@alum.mit.edu> wrote:

> This was working before I upgraded to 2.3.4.  I think a bug was
> introduced in the latest version.  I would not be surprised if other
> people find that their tasks are not resuming in the Activity where
> they 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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