I have an activity (A) that must always be at the top of the stack.
When another activity is started and onStop is called, it starts
itself again using FLAG_ACTIVITY_REORDER_TO_FRONT. This works as
expected, unless Activity A uses Theme.Dialog or Theme.Translucent.
Modified log:

Activity A created
Activity A started
Activity A resumed
Activity A paused
Activity B created
Activity B started
Activity B resumed
Activity B gains window focus
Activity A stopped
Top activity in stack is Activity B, so Activity A relaunches itself
Activity B paused
Activity A started
Activity A resumed

Top activity in stack is Activity A, however, Activity B continues to
have window focus.

Is there a way to bring Activity A into focus or a better approach
altogether? I understand that this is unusual behavior but it is
necessary for Activity A to remain in the foreground until it is
deliberately finished. I'm running 2.2.

Thanks,
Laura

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