Reputation: 2089
I am having a weird problem with FLAG_ACTIVITY_REORDER_TO_FRONT. I have 2 activities, A and B. A has a button to move to B and B has a button to move to A. So here we go.
First scenario:
Second scenario
Shouldn't my application go to B when i click the back button ? Even when I do a
adb shell
dumpsys activity | grep -i run
right before clicking the back button, it displays 2 activities in the stack, A on top and B right under it.
P.S. I am using the Intent.FLAG_ACTIVITY_REORDER_TO_FRONT to handle more complex scenarios when using these activities (and many more), that interestingly work just fine. It's only when I only have 2 Activities that I get this early exit of the application.
Upvotes: 2
Views: 5670
Reputation: 2089
This is a duplicate of this: Puzzling behavior with REORDER_TO_FRONT
Apparently this is an android bug on API 19.
For more details see the bug report: https://code.google.com/p/android/issues/detail?id=63570#c2
Upvotes: 2