I’m wondering how to handle sub processes with the back button in mind.
For example:
- Skipping the login screen when clicking back from the default view
- Pre-upload processing view. I want the back button to return to the last activity before the upload after the user uploaded or canceled.
I imagine the solution will include overriding the finish() behavior, I’m just not sure about the details.
Help will be appreciated.
Thanks
To prevent a previous Activity from appearing when the user uses the back button you should use the
noHistorymanifest flag.I suggest you read up on how the Activity backstack works in more detail. This guide should prove useful:
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html