My application has the following flow screens :
Home->screen 1->screen 2->screen 3->screen 4->screen 5
Now I have a common log out
button in each screens
(Home/ screen 1 / screen 2 /screen 3/ screen 4 / screen 5
)
I want that when user clicks on the log out button(from any screen), all the screens will be finished and a new screen Log in
will open .
I have tried nearly all FLAG_ACTIVITY
to achieve this.
I also go through some answers in stackoverflow, but not being able to solve the problem.
My application is on Android 1.6 so not being able to use FLAG_ACTIVITY_CLEAR_TASK
Is there any way to solve the issue ?