Androider Androider - 1 month ago 16
Android Question

Android Closing Activity Programatically

What is the equivalent operation within an activity to navigating away from the screen. Like when you press the back button, the activity goes out of view. How can this be called from inside an activity so that it closes itself. Thanks.

Answer

What about the Activity.finish() method (quoting) :

Call this when your activity is done and should be closed.