I have an Android app in which activity A calls activity B
which calls activity C
.
in activity C
there is button to restart the whole thing but the user should be able to navigate between the activities if he presses the back button.
I've tried startActivityForResult(intent,int)
and sending close all the way back but in this case, if the user clicks the back button, it collapses all the previous activities regardless of pressing the restart button on activity C
.
Anyone knows how to solve this?