I have this challenge with my Android APP:
I have and "dialog" - I mean an activity created as a dialog. Now, user presses the home button and leaves the app ~ later holds the home button and displays the Recent apps list. He will see the dialog as the last activity of my app. However, I don't want to display this activity on the "stack".
I tried the exceludeFromRecentApps (or similar name) and this one enabled removes whole app from the list. But I want to have dialog's parent activity displayed in the list. I tried something with overriding the onResume, onPause and onStop methods, but no effect for me, since instance-level variables may be discarded (?). I believe thats trivial problem, but I wasn't able to google working solution.
Lot of thanks!