I created an android application with a logout option in onCreateOptionsMenu. The Logout works perfectly but when I press the back button again it takes me to t
If you want to close application completely you should use finishAffinity(); instead of finish() .
It will clear all stack of activities previously opened by an application.