I’m developing an Android application that has many activities. I have a Logout Activity to check logout, user must input username & password to log out. If that are correct, my application will close and return to Android Homeboard.
But in logout activity, I can’t close my application. I used Finish(), but it only closes that activity. What can I do to solve this?
Since there’s no ‘exit application’ method, another way is to call moveTaskToBack(true) which “hides” the current application.
Reference: moveTaskToback()