My MAIN activity is spawning a child activity that contains a ListView
. While this ListView
is being populated (through an AsyncTask
), an indeterminate progress bar is shown.
However, assuming that I am an impatient user and I press the BACK button, the progress bar is cancelled but I am left with a blank screen. I have to press BACK one more time to go back to the MAIN activity.
I would like the app to go back directly to the MAIN activity by pressing BACK only once. Can somebody point me in the right direction? I am thinking I should call finish()
somewhere but I don't know where to put it. Thanks in advance!