Scenario:
My application does the following:
- Shows a button
- When I click button, a new activity is displayed from a different application within my task.
I expect that if I click back within that new activity, I'd be returned to my application. This happens under standard operation.
However, if I set "Background process limit" to "1 process", this stops working; hitting back just returns to the task launcher. Android makes no attempt to recreate the (destroyed) activities earlier in my task stack. (their onCreate method is never called)
I've tried placing android:alwaysRetainTaskState="true" in the root activity (and in every activity the user interacts with), but this seemingly incorrect behavior remains.
Is this intentional behavior in Android? Could a user in the real-world ever encounter my app behaving this way?