I have sort of wizard in app going through 6 Activities.
so I call:
Main Activity - Call Option 1 - Call Option 2 - Call Option 3 - Call Option 4 - Call Option 5
Now, on Option 5 I perform save of the whole action to database, and at that point I need to go back to Main Activity and destroy Option1,2,3,4 and 5.
Until Option 5 saves to database, I need to be able to go back, do changes, go forth to Option 5 and save it.
IS proper way to do it that I somehow create method that would have:
private void cleanStack(){
Option1.finish();
Option2.finish();
Option3.finish();
Option4.finish();
Option5.finish();
}
And then start (or resume) Main Activity?
Tnx