I have one Splash Activity , login Activity and dashboard.
Splash Activity do GCM etc work. Login will have login only.
Now if I login and move to dashboard, when user press back button on dashboard it should redirect user to exit, Not on Login screen. Similarly if user session expired then App redirect user to login screen.
Now I handled Backbutton on Login screen, So it should not allow user to go back to prev activity, But How do I allow user to exit.
Similarly I handled Backbutton on dashboard , so it will not allow user to go to prev login screen.
- splash => login => dashboard
- Splash => dashboard (if session is not expired)
- dashboard=> other activity => login
What is the best way to exit from dashboard and login activity without moving to previous activity.