I have three activities (a
, b
, c
).
Activity a
- has one button for activity b
and one button to close the app (by calling onfinish()
).
- is the main activity, which runs b
.
Activity b
- is the middle one which runs c
.
After clicking on a back button that I placed in the header of activity c
, and then clicking on the button of the a activity to close the app, I am returned to activity c
. This is not the behavior I expected, any ideas about what is happening?
Further information:
activity
c
hasonResume()
because I also have an activityd
. so when I click back button of activityd
, it returns to activityc
.so long as I don't run the activity
c
, the close button works as expected.