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
Even if it looks ok killing process will cause you headache in future. You can ensure this by following use case:
OBSERVED: Your application opens not from main activity in inconsistent way. This is because Android consider killing of process like crash.
You can find more detailed information here: Is quitting an application frowned upon?