Do you always call finish()
on some activity before going to another activity?
For example, in order to prevent user going to the previous activity via mobile back button, some people suggest that you should finish all activities, except the main one. This way, the back button always returns you to the main activity (or any other activity you think a user should be navigated). This is done by overriding back button behaviour.
Bad thing of this is when there is a dialog run from the Handler which try to runs after the activity finished (http://dimitar.me/android-displaying-dialogs-from-background-threads/).
What is your rule of thumb on this issue? Call finish()
in some smarter way or overriding back button to direct user to page of your choice?