In my application when user clicks logout button, app takes him to login screen again and when he pressess back button from that logIn screen, toast appears that "u must login to continue.
I have done this to stop back navigation because if back navigation is possible then he would get all previous activities alive. After it when I press HOME button to exit from app, it minimizes the app and whenever I start my application, it starts from LogIn screen.
I need it to start it from splash screen .. what should I do ?
I have used this code in login screen to make back navigation impossible.
@Override
public void onBackPressed() {
Toast.makeText(getApplicationContext(), "You Must login to continue!", Toast.LENGTH_LONG).show();
}
Is it a bad idea to use "HOME BUTTON" to exit from application?